From: Linus Walleij Date: Sat, 13 Jun 2009 22:20:36 +0000 (+0200) Subject: i2c: Use resource_size macro X-Git-Tag: v2.6.31-rc1~293^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6ffddea36dd576b70dfbd10eb5d2b287b786dca;p=pandora-kernel.git i2c: Use resource_size macro This replace all instances in the i2c busses tree of res->end - res->start + 1 with the handy macro resource_size(res) from ioport.h (coming in from platform_device.h). This was created with a simple sed -i -e 's/\([a-z]*\)->end *- *[a-z]*->start *+ *1/resource_size(\1)/g' Then manually replacing the PXA redefiniton of the same kind of macro manually. Recompiled some ARM defconfigs I could find to make a rough test so it shouldn't break anything, though I couldn't see exactly which configs you need for all the drivers. Signed-off-by: Linus Walleij Signed-off-by: Ben Dooks --- Reading git-diff-tree failed