ARM: imx: Remove unneeded .map_io initialization
Subsystems (3)
PATCH 1/2 ARM: imx: Remove unneeded .map_io initialization
If machine_desc.map_io is not set, devicemaps_init() in the common ARM code will call debug_ll_io_init().
---
Untested
arch/arm/mach-imx/mach-imx6sl.c | 1 - arch/arm/mach-imx/mach-imx6sx.c | 1 - 2 files changed, 2 deletions(-)
arch/arm/mach-imx/mach-imx6sl.c +0 -1
@@ -76,7 +76,6 @@ static const char * const imx6sl_dt_compat[] __initconst = { };DT_MACHINE_START (IMX6SL ,"Freescale i.MX6 SoloLite (Device Tree)" ) - .map_io = debug_ll_io_init, .init_irq = imx6sl_init_irq, .init_machine = imx6sl_init_machine, .init_late = imx6sl_init_late,
arch/arm/mach-imx/mach-imx6sx.c +0 -1
@@ -53,7 +53,6 @@ static const char * const imx6sx_dt_compat[] __initconst = { };DT_MACHINE_START (IMX6SX ,"Freescale i.MX6 SoloX (Device Tree)" ) - .map_io = debug_ll_io_init, .init_irq = imx6sx_init_irq, .init_machine = imx6sx_init_machine, .dt_compat = imx6sx_dt_compat,
Signature · 1 line
1.9.1
PATCH 2/2 ARM: nspire: Remove unneeded nspire_map_io()
nspire_map_io() just calls debug_ll_io_init().
If machine_desc.map_io is not set, devicemaps_init() in the common ARM code will call debug_ll_io_init(), so nspire_map_io() and the initialization of .map_io can be removed.
---
Untested
arch/arm/mach-nspire/nspire.c | 6 ------ 1 file changed, 6 deletions(-)
arch/arm/mach-nspire/nspire.c +0 -6
@@ -35,11 +35,6 @@ static const char *nspire_dt_match[] __initconst = { NULL, }; -static void __init nspire_map_io (void ) -{ -debug_ll_io_init (); -} -static struct clcd_board nspire_clcd_data = { .name ="LCD" , .caps =CLCD_CAP_5551 |CLCD_CAP_565 ,
@@ -74,7 +69,6 @@ static void nspire_restart(enum reboot_mode mode, const char *cmd)DT_MACHINE_START (NSPIRE ,"TI-NSPIRE" ) .dt_compat = nspire_dt_match, - .map_io = nspire_map_io, .init_machine = nspire_init, .restart = nspire_restart,MACHINE_END
Signature · 1 line
1.9.1
PATCH 1/2 ARM: imx: Remove unneeded .map_io initialization
In reply to Geert UytterhoevenQuoted 2 lines · Geert Uytterhoeven
If machine_desc.map_io is not set,
devicemaps_init()in the common ARM code will calldebug_ll_io_init().
How about a WARN_ON(mdesc->map_io == debug_ll_io_init) ? This can only really be done when CONFIG_DEBUG_LL is defined because otherwise it's an inline function, but it may help to stop these from appearing in the first place.
Signature · 2 lines
FTTC broadband for 0.8mile line: currently at 9.5Mbps down 400kbps up according to speedtest.net.
PATCH 1/2 ARM: imx: Remove unneeded .map_io initialization
Quoted 8 lines · Russell King - ARM Linux
Quoted 2 lines · Geert Uytterhoeven
If machine_desc.map_io is not set,
devicemaps_init()in the common ARM code will calldebug_ll_io_init().How about a
WARN_ON(mdesc->map_io == debug_ll_io_init)? This can only really be done whenCONFIG_DEBUG_LLis defined because otherwise it's an inline function, but it may help to stop these from appearing in the first place.
I'd rather have a BUILD_BUG_ON(). Unfortunately MACHINE_END doesn't know about the machine type, else we could probably add a check to that macro.
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
Shawn Guo
AppliedPATCH 1/2 ARM: imx: Remove unneeded .map_io initialization
In reply to Geert UytterhoevenQuoted 4 lines · Geert Uytterhoeven
If machine_desc.map_io is not set,
devicemaps_init()in the common ARM code will calldebug_ll_io_init().Signed-off-by Geert Uytterhoeven <[email protected]>
Applied, thanks.