ARM: msm: avoid calling debug_ll_addr on !MMU
authorArnd Bergmann <arnd@arndb.de>
Sun, 16 Mar 2014 19:57:29 +0000 (20:57 +0100)
committerArnd Bergmann <arnd@arndb.de>
Fri, 21 Mar 2014 17:23:31 +0000 (18:23 +0100)
commitd967b0100f8d99480487bce8ead1e0c3affdc511
tree4c6a125338730e85a0cfbdb443a721cadd40a1da
parent404ed596de6fa3a43416c823fb8ab2ba0e7a1772
ARM: msm: avoid calling debug_ll_addr on !MMU

MSM7X00A has an open-coded version of debug_ll_io_init so it
can use MT_DEVICE_NONSHARED as required by the platform.

However, this fails to build on no-MMU kernels because the
debug_ll_addr function is not available. Since the iotable_init
function doesn't actually do anyting in this configuration,
we can simply get away by enclosing the broken function call
in an #ifdef, which seems to be the least ugly workaround.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: David Brown <davidb@codeaurora.org>
Cc: Daniel Walker <dwalker@fifo99.com>
Cc: Bryan Huntsman <bryanh@codeaurora.org>
arch/arm/mach-msm/io.c