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

Configure Feed

Select the types of activity you want to include in your feed.

ARM: at91: remove unnecessary of_platform_default_populate calls

The DT core will call of_platform_default_populate, so it is not
necessary for machine specific code to call it unless there are custom
match entries, auxdata or parent device. Neither of those apply here, so
remove the call.

Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Tested-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://lore.kernel.org/r/20260105-at91-probe-v3-3-594013ff2965@kernel.org
Signed-off-by: Claudiu Beznea <claudiu.beznea@tuxon.dev>

authored by

Rob Herring (Arm) and committed by
Claudiu Beznea
0b0f7e65 ef45b853

-61
-9
arch/arm/mach-at91/at91rm9200.c
··· 7 7 * 2012 Joachim Eastwood <manabian@gmail.com> 8 8 */ 9 9 10 - #include <linux/of.h> 11 - #include <linux/of_platform.h> 12 - 13 10 #include <asm/mach/arch.h> 14 11 15 12 #include "generic.h" 16 - 17 - static void __init at91rm9200_dt_device_init(void) 18 - { 19 - of_platform_default_populate(NULL, NULL, NULL); 20 - } 21 13 22 14 static const char *const at91rm9200_dt_board_compat[] __initconst = { 23 15 "atmel,at91rm9200", ··· 18 26 19 27 DT_MACHINE_START(at91rm9200_dt, "Atmel AT91RM9200") 20 28 .init_late = at91rm9200_pm_init, 21 - .init_machine = at91rm9200_dt_device_init, 22 29 .dt_compat = at91rm9200_dt_board_compat, 23 30 MACHINE_END
-9
arch/arm/mach-at91/at91sam9.c
··· 6 6 * 2011 Nicolas Ferre <nicolas.ferre@atmel.com> 7 7 */ 8 8 9 - #include <linux/of.h> 10 - #include <linux/of_platform.h> 11 - 12 9 #include <asm/mach/arch.h> 13 10 #include <asm/system_misc.h> 14 11 15 12 #include "generic.h" 16 - 17 - static void __init at91sam9_init(void) 18 - { 19 - of_platform_default_populate(NULL, NULL, NULL); 20 - } 21 13 22 14 static const char *const at91_dt_board_compat[] __initconst = { 23 15 "atmel,at91sam9", ··· 19 27 DT_MACHINE_START(at91sam_dt, "Atmel AT91SAM9") 20 28 /* Maintainer: Atmel */ 21 29 .init_late = at91sam9_pm_init, 22 - .init_machine = at91sam9_init, 23 30 .dt_compat = at91_dt_board_compat, 24 31 MACHINE_END
-9
arch/arm/mach-at91/sam9x60.c
··· 7 7 * Author: Claudiu Beznea <claudiu.beznea@microchip.com> 8 8 */ 9 9 10 - #include <linux/of.h> 11 - #include <linux/of_platform.h> 12 - 13 10 #include <asm/mach/arch.h> 14 11 #include <asm/system_misc.h> 15 12 16 13 #include "generic.h" 17 - 18 - static void __init sam9x60_init(void) 19 - { 20 - of_platform_default_populate(NULL, NULL, NULL); 21 - } 22 14 23 15 static const char *const sam9x60_dt_board_compat[] __initconst = { 24 16 "microchip,sam9x60", ··· 20 28 DT_MACHINE_START(sam9x60_dt, "Microchip SAM9X60") 21 29 /* Maintainer: Microchip */ 22 30 .init_late = sam9x60_pm_init, 23 - .init_machine = sam9x60_init, 24 31 .dt_compat = sam9x60_dt_board_compat, 25 32 MACHINE_END
-9
arch/arm/mach-at91/sam9x7.c
··· 7 7 * Author: Varshini Rajendran <varshini.rajendran@microchip.com> 8 8 */ 9 9 10 - #include <linux/of.h> 11 - #include <linux/of_platform.h> 12 - 13 10 #include <asm/mach/arch.h> 14 11 15 12 #include "generic.h" 16 - 17 - static void __init sam9x7_init(void) 18 - { 19 - of_platform_default_populate(NULL, NULL, NULL); 20 - } 21 13 22 14 static const char * const sam9x7_dt_board_compat[] __initconst = { 23 15 "microchip,sam9x7", ··· 19 27 DT_MACHINE_START(sam9x7_dt, "Microchip SAM9X7") 20 28 /* Maintainer: Microchip */ 21 29 .init_late = sam9x7_pm_init, 22 - .init_machine = sam9x7_init, 23 30 .dt_compat = sam9x7_dt_board_compat, 24 31 MACHINE_END
-16
arch/arm/mach-at91/sama5.c
··· 6 6 * 2013 Ludovic Desroches <ludovic.desroches@atmel.com> 7 7 */ 8 8 9 - #include <linux/of.h> 10 - #include <linux/of_platform.h> 11 - 12 9 #include <asm/hardware/cache-l2x0.h> 13 10 #include <asm/mach/arch.h> 14 11 #include <asm/mach/map.h> ··· 27 30 outer_cache.write_sec = sama5_l2c310_write_sec; 28 31 } 29 32 30 - static void __init sama5_dt_device_init(void) 31 - { 32 - of_platform_default_populate(NULL, NULL, NULL); 33 - } 34 - 35 33 static const char *const sama5_dt_board_compat[] __initconst = { 36 34 "atmel,sama5", 37 35 NULL ··· 35 43 DT_MACHINE_START(sama5_dt, "Atmel SAMA5") 36 44 /* Maintainer: Atmel */ 37 45 .init_late = sama5_pm_init, 38 - .init_machine = sama5_dt_device_init, 39 46 .dt_compat = sama5_dt_board_compat, 40 47 MACHINE_END 41 48 ··· 45 54 46 55 DT_MACHINE_START(sama5_alt_dt, "Atmel SAMA5") 47 56 /* Maintainer: Atmel */ 48 - .init_machine = sama5_dt_device_init, 49 57 .init_late = sama5_pm_init, 50 58 .dt_compat = sama5_alt_dt_board_compat, 51 59 .l2c_aux_mask = ~0UL, 52 60 MACHINE_END 53 - 54 - static void __init sama5d2_init(void) 55 - { 56 - of_platform_default_populate(NULL, NULL, NULL); 57 - } 58 61 59 62 static const char *const sama5d2_compat[] __initconst = { 60 63 "atmel,sama5d2", ··· 57 72 58 73 DT_MACHINE_START(sama5d2, "Atmel SAMA5") 59 74 /* Maintainer: Atmel */ 60 - .init_machine = sama5d2_init, 61 75 .init_early = sama5_secure_cache_init, 62 76 .init_late = sama5d2_pm_init, 63 77 .dt_compat = sama5d2_compat,
-9
arch/arm/mach-at91/sama7.c
··· 6 6 * 7 7 */ 8 8 9 - #include <linux/of.h> 10 - #include <linux/of_platform.h> 11 - 12 9 #include <asm/mach/arch.h> 13 10 #include <asm/system_misc.h> 14 11 15 12 #include "generic.h" 16 - 17 - static void __init sama7_dt_device_init(void) 18 - { 19 - of_platform_default_populate(NULL, NULL, NULL); 20 - } 21 13 22 14 static const char *const sama7_dt_board_compat[] __initconst = { 23 15 "microchip,sama7", ··· 19 27 DT_MACHINE_START(sama7_dt, "Microchip SAMA7") 20 28 /* Maintainer: Microchip */ 21 29 .init_late = sama7_pm_init, 22 - .init_machine = sama7_dt_device_init, 23 30 .dt_compat = sama7_dt_board_compat, 24 31 MACHINE_END 25 32