Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=ab9d90db956dec1a83f4c4ef443df6bdbfc3f25d Commit: ab9d90db956dec1a83f4c4ef443df6bdbfc3f25d Parent: 6d2e857d02a59332b7cd89aeac8b5962a357ac7a Author: Lennert Buytenhek <[EMAIL PROTECTED]> AuthorDate: Mon Dec 18 01:02:24 2006 +0100 Committer: Russell King <[EMAIL PROTECTED]> CommitDate: Mon Dec 18 00:14:58 2006 +0000
[ARM] 4056/1: iop13xx: fix resource.end off-by-one in flash setup The struct resource 'end' field is inclusive, the iop13xx flash setup code got this wrong. Signed-off-by: Lennert Buytenhek <[EMAIL PROTECTED]> Signed-off-by: Russell King <[EMAIL PROTECTED]> --- arch/arm/mach-iop13xx/setup.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-iop13xx/setup.c b/arch/arm/mach-iop13xx/setup.c index 3756d2c..5fbeb28 100644 --- a/arch/arm/mach-iop13xx/setup.c +++ b/arch/arm/mach-iop13xx/setup.c @@ -337,7 +337,7 @@ void __init iop13xx_platform_init(void) #ifdef CONFIG_MTD_PHYSMAP iq8134x_flash_resource.end = iq8134x_flash_resource.start + - iq8134x_probe_flash_size(); + iq8134x_probe_flash_size() - 1; if (iq8134x_flash_resource.end > iq8134x_flash_resource.start) iop13xx_devices[plat_idx++] = &iq8134x_flash; else - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html