]> rtime.felk.cvut.cz Git - linux-imx.git/commitdiff
ARM: mmu: Call debug_ll_io_init if no map_io function is specified
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Thu, 18 Apr 2013 19:52:23 +0000 (21:52 +0200)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Fri, 24 May 2013 08:22:26 +0000 (10:22 +0200)
More and more sub-architectures are using only the debug_ll_io_init
function as the map_io function. Make the core code call this function
if no function is specified in the machine description to remove some
boilerplate code.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Rob Herring <rob.herring@calxeda.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/mm/mmu.c

index e0d8565671a6c8104c643937098b963ac2f517ee..faa36d7b8786a1cd6c6aa142c35e605456d5c0a7 100644 (file)
@@ -1232,6 +1232,8 @@ static void __init devicemaps_init(struct machine_desc *mdesc)
         */
        if (mdesc->map_io)
                mdesc->map_io();
+       else
+               debug_ll_io_init();
        fill_pmd_gaps();
 
        /* Reserve fixed i/o space in VMALLOC region */