summaryrefslogtreecommitdiff
path: root/target/linux/adm5120-2.6/files/drivers
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2007-07-18 17:27:40 +0000
committerFlorian Fainelli <florian@openwrt.org>2007-07-18 17:27:40 +0000
commit01696b71cc6da50897d4ed7ff5b6f782b5e76571 (patch)
treea436f537b02dec28653f57bb29e5966eb0d6178a /target/linux/adm5120-2.6/files/drivers
parentb3fae870093c1ca8d1c810251645f04e6b5a0db7 (diff)
downloadmtk-20170518-01696b71cc6da50897d4ed7ff5b6f782b5e76571.zip
mtk-20170518-01696b71cc6da50897d4ed7ff5b6f782b5e76571.tar.gz
mtk-20170518-01696b71cc6da50897d4ed7ff5b6f782b5e76571.tar.bz2
Replace hardcoded values with their correct definitions
SVN-Revision: 8046
Diffstat (limited to 'target/linux/adm5120-2.6/files/drivers')
-rw-r--r--target/linux/adm5120-2.6/files/drivers/mtd/nand/rbmipsnand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/adm5120-2.6/files/drivers/mtd/nand/rbmipsnand.c b/target/linux/adm5120-2.6/files/drivers/mtd/nand/rbmipsnand.c
index 9e6ae1b..1c524d4 100644
--- a/target/linux/adm5120-2.6/files/drivers/mtd/nand/rbmipsnand.c
+++ b/target/linux/adm5120-2.6/files/drivers/mtd/nand/rbmipsnand.c
@@ -115,7 +115,7 @@ static int rbmips_probe(struct platform_device *pdev)
}
- data->io_base = ioremap(pdev->resource[0].start, 0x1000);
+ data->io_base = ioremap(pdev->resource[0].start, pdev->resource[0].end - pdev->resource[0].start + 1);
if (data->io_base == NULL) {
dev_err(&pdev->dev, "ioremap failed\n");