diff options
author | hauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-05-13 15:10:40 +0000 |
---|---|---|
committer | hauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2012-05-13 15:10:40 +0000 |
commit | c8c0045b91db29cdc5229b0f0272a8565b430f76 (patch) | |
tree | b6672dea93059de3c1a3449f25e6b32786b3f03f /target/linux/amazon/files/drivers/mtd/maps | |
parent | 4e0a145caec7cc6c34e979f02a52ae742f0fb9ce (diff) |
amazon: update amazon target to kernel 3.3
This is just compile tested, my device is currently not working.
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31706 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/amazon/files/drivers/mtd/maps')
-rw-r--r-- | target/linux/amazon/files/drivers/mtd/maps/amazon.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/amazon/files/drivers/mtd/maps/amazon.c b/target/linux/amazon/files/drivers/mtd/maps/amazon.c index 55bfe3237..568f7d828 100644 --- a/target/linux/amazon/files/drivers/mtd/maps/amazon.c +++ b/target/linux/amazon/files/drivers/mtd/maps/amazon.c @@ -118,7 +118,7 @@ int find_uImage_size(unsigned long start_offset) return temp + 0x40; } -static int __init amazon_mtd_probe(struct platform_device *dev) +static int amazon_mtd_probe(struct platform_device *dev) { unsigned long uimage_size; struct mtd_info *mymtd = NULL; @@ -167,7 +167,7 @@ static int __init amazon_mtd_probe(struct platform_device *dev) amazon_partitions[2].size = mymtd->size - amazon_partitions[2].offset - (2 * mymtd->erasesize); } - add_mtd_partitions(mymtd, parts, 3); + mtd_device_register(mymtd, parts, 3); printk(KERN_INFO "amazon_mtd: added %s flash with %dMB\n", amazon_map.name, ((int)mymtd->size) >> 20); |