]> git.karo-electronics.de Git - karo-tx-linux.git/commit
asm-generic/io.h: check CONFIG_VIRT_TO_BUS
authorJames Hogan <james.hogan@imgtec.com>
Fri, 23 Nov 2012 16:13:05 +0000 (16:13 +0000)
committerJames Hogan <james.hogan@imgtec.com>
Mon, 28 Jan 2013 16:24:20 +0000 (16:24 +0000)
commita4267a0a5e081a60f4754de86ef4cc388592dd51
treeb645b3d403940b1e39b675f828f40e0ba33f969a
parent949db153b6466c6f7cad5a427ecea94985927311
asm-generic/io.h: check CONFIG_VIRT_TO_BUS

Make asm-generic/io.h check CONFIG_VIRT_TO_BUS before defining
virt_to_bus() and bus_to_virt(), otherwise it's easy to accidentally
have a silently failing incorrect direct mapped definition rather then
no definition at all.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
include/asm-generic/io.h