ARM: make mach/io.h include optional
authorRob Herring <rob.herring@calxeda.com>
Mon, 5 Mar 2012 04:03:33 +0000 (22:03 -0600)
committerRob Herring <rob.herring@calxeda.com>
Wed, 7 Mar 2012 03:34:43 +0000 (21:34 -0600)
commitc334bc150524f833db3c76a0aaf55fb5044444e1
treea29acb80a05bdca36547b973229582481727ee24
parent41e32c906054be3a600cdeb69eb70350066e0a91
ARM: make mach/io.h include optional

Add a kconfig option NEED_MACH_IO_H to conditionally include mach/io.h.

Basing this on CONFIG_PCI and CONFIG_ISA doesn't quite work. Most ISA
platforms don't need mach/io.h, but ebsa110 does. Most PCI platforms need
mach/io.h for now, but ks8695 doesn't which means i/o accesses are broken.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Cc: Russell King <linux@arm.linux.org.uk>
Acked-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Acked-by: Nicolas Pitre <nico@linaro.org>
arch/arm/Kconfig
arch/arm/include/asm/io.h