diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2012-05-13 15:10:40 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2012-05-13 15:10:40 +0000 |
commit | abd74f86b459f4ac684de4a0f1bf6552d14b105a (patch) | |
tree | 5e6a8d954a21071671d2dc346bc97c6bb0d8ec3c /target/linux/amazon/files/drivers/mtd/maps | |
parent | 2803206c500fd09cbcb926e9cba7b19b5ae0d9f2 (diff) | |
download | mtk-20170518-abd74f86b459f4ac684de4a0f1bf6552d14b105a.zip mtk-20170518-abd74f86b459f4ac684de4a0f1bf6552d14b105a.tar.gz mtk-20170518-abd74f86b459f4ac684de4a0f1bf6552d14b105a.tar.bz2 |
amazon: update amazon target to kernel 3.3
This is just compile tested, my device is currently not working.
SVN-Revision: 31706
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 55bfe32..568f7d8 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); |