]> git.baikalelectronics.ru Git - kernel.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>
Sat, 2 Mar 2013 20:09:14 +0000 (20:09 +0000)
commit03332c2d1ec7219dc1f68d4b3731fa8aa08f15cb
tree88f05b0859830c331cfbff0c1908ac701d8e2a06
parentb82d9eb10fa98f8229357371867818e4b6750349
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