diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2006-06-27 15:38:15 +0200 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2006-06-27 15:38:15 +0200 |
commit | 6d4f8224d4ee065e0e3186cc554468d735e6015d (patch) | |
tree | c0b4107954701c9f34d638b7ec5e59b4bb279e89 | |
parent | [MTD] Remove unused 'nr_banks' variable from ixp2000 map driver (diff) | |
download | linux-6d4f8224d4ee065e0e3186cc554468d735e6015d.tar.xz linux-6d4f8224d4ee065e0e3186cc554468d735e6015d.zip |
[MTD] Fix off-by-one error in physmap.c
This patch fixes a simple off-by-one error in the mtd physmap driver.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Lennert Buytenhek <buytenh@wantstofly.org>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
-rw-r--r-- | drivers/mtd/maps/physmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/maps/physmap.c b/drivers/mtd/maps/physmap.c index 433c3cac3ca9..d6301f08906d 100644 --- a/drivers/mtd/maps/physmap.c +++ b/drivers/mtd/maps/physmap.c @@ -182,7 +182,7 @@ static struct physmap_flash_data physmap_flash_data = { static struct resource physmap_flash_resource = { .start = CONFIG_MTD_PHYSMAP_START, - .end = CONFIG_MTD_PHYSMAP_START + CONFIG_MTD_PHYSMAP_LEN, + .end = CONFIG_MTD_PHYSMAP_START + CONFIG_MTD_PHYSMAP_LEN - 1, .flags = IORESOURCE_MEM, }; |