Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: ixp4xx: Remove unused debug iomap

If we don't provide the .map_io() callback, the LL debug
defines will kick in anyway, so delete the UART debug map
as well.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20221121221015.1454948-1-linus.walleij@linaro.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>

authored by

Linus Walleij and committed by
Arnd Bergmann
c93d8b45 894799e1

-25
-25
arch/arm/mach-ixp4xx/ixp4xx-of.c
··· 2 2 /* 3 3 * IXP4xx Device Tree boot support 4 4 */ 5 - #include <linux/kernel.h> 6 - #include <linux/init.h> 7 - #include <linux/io.h> 8 - 9 5 #include <asm/mach/arch.h> 10 - #include <asm/mach/map.h> 11 - 12 - #ifdef CONFIG_DEBUG_UART_8250 13 - static struct map_desc ixp4xx_of_io_desc[] __initdata = { 14 - /* This is needed for LL-debug/earlyprintk/debug-macro.S */ 15 - { 16 - .virtual = CONFIG_DEBUG_UART_VIRT, 17 - .pfn = __phys_to_pfn(CONFIG_DEBUG_UART_PHYS), 18 - .length = SZ_4K, 19 - .type = MT_DEVICE, 20 - }, 21 - }; 22 - 23 - static void __init ixp4xx_of_map_io(void) 24 - { 25 - iotable_init(ixp4xx_of_io_desc, ARRAY_SIZE(ixp4xx_of_io_desc)); 26 - } 27 - #else 28 - #define ixp4xx_of_map_io NULL 29 - #endif 30 6 31 7 /* 32 8 * We handle 4 different SoC families. These compatible strings are enough ··· 18 42 }; 19 43 20 44 DT_MACHINE_START(IXP4XX_DT, "IXP4xx (Device Tree)") 21 - .map_io = ixp4xx_of_map_io, 22 45 .dt_compat = ixp4xx_of_board_compat, 23 46 MACHINE_END