summaryrefslogtreecommitdiffstats
path: root/target/linux/adm5120-2.6/files/drivers/mtd
diff options
context:
space:
mode:
authorflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-07-18 17:27:40 +0000
committerflorian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73>2007-07-18 17:27:40 +0000
commit388d9e834c816c9ae981c029acd867c2b1e868c6 (patch)
tree9016d0e10f72d423be2a124cfd13e1e3e4e40ab7 /target/linux/adm5120-2.6/files/drivers/mtd
parent5b386e7073cfd724214e3210e28d0c218ee1112d (diff)
Replace hardcoded values with their correct definitions
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8046 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/adm5120-2.6/files/drivers/mtd')
-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 9e6ae1b57..1c524d40a 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");