[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 <[email protected]>
Signed-off-by: Lennert Buytenhek <[email protected]>
Signed-off-by: David Woodhouse <[email protected]>
This commit is contained in:
Sascha Hauer 2006-06-27 14:38:15 +01:00 • committed by David Woodhouse
commit 6d4f8224d4

View file

@ -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,
};