ARM: make mach/io.h include optional
authorRob Herring <[email protected]>
Mon, 5 Mar 2012 04:03:33 +0000 (22:03 -0600)
committerRob Herring <[email protected]>
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 <[email protected]>
Cc: Russell King <[email protected]>
Acked-by: H Hartley Sweeten <[email protected]>
Acked-by: Nicolas Pitre <[email protected]>
arch/arm/Kconfig
arch/arm/include/asm/io.h