From: Russell King Date: Fri, 5 Sep 2008 14:49:14 +0000 (+0100) Subject: [ARM] omap: fix inappropriate casting in gpio.c X-Git-Tag: v2.6.28-rc1~293^2~2^2~10^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c7095aa423b9b14038abc08fba84b9d7a33d643;p=pandora-kernel.git [ARM] omap: fix inappropriate casting in gpio.c gpio.c wilfully casts physical addresses to void __iomem * and then fixes them up at runtime using: bank->base = IO_ADDRESS(bank->base); where accesses prior to this fixup are via omap_read/omap_write, and after are by __raw_read/__raw_write. This doesn't lend itself to static checking, nor to easy understanding of the code. And so, OMAP_MPUIO_BASE gets to be the right type - integer like since it's a physical address, not a MMIO pointer. Signed-off-by: Russell King --- Reading git-diff-tree failed