diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2006-06-27 13:38:15 (GMT) |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2006-06-27 13:38:15 (GMT) |
commit | 6d4f8224d4ee065e0e3186cc554468d735e6015d (patch) | |
tree | c0b4107954701c9f34d638b7ec5e59b4bb279e89 /drivers/mtd | |
parent | ce5b0968b1caa6b93e366e88a3c5fa2fd59029ce (diff) | |
download | linux-6d4f8224d4ee065e0e3186cc554468d735e6015d.tar.xz |
[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>
Diffstat (limited to 'drivers/mtd')
-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 433c3ca..d6301f0 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, }; |