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: Move PM init functions to .init_late hook

Move the AT91 PM init functions to .init_late hook to ensure driver
dependencies have probed.

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-2-594013ff2965@kernel.org
Signed-off-by: Claudiu Beznea <claudiu.beznea@tuxon.dev>

authored by

Rob Herring (Arm) and committed by
Claudiu Beznea
ef45b853 8f0b4cce

+8 -11
+1 -2
arch/arm/mach-at91/at91rm9200.c
··· 17 17 static void __init at91rm9200_dt_device_init(void) 18 18 { 19 19 of_platform_default_populate(NULL, NULL, NULL); 20 - 21 - at91rm9200_pm_init(); 22 20 } 23 21 24 22 static const char *const at91rm9200_dt_board_compat[] __initconst = { ··· 25 27 }; 26 28 27 29 DT_MACHINE_START(at91rm9200_dt, "Atmel AT91RM9200") 30 + .init_late = at91rm9200_pm_init, 28 31 .init_machine = at91rm9200_dt_device_init, 29 32 .dt_compat = at91rm9200_dt_board_compat, 30 33 MACHINE_END
+1 -2
arch/arm/mach-at91/at91sam9.c
··· 17 17 static void __init at91sam9_init(void) 18 18 { 19 19 of_platform_default_populate(NULL, NULL, NULL); 20 - 21 - at91sam9_pm_init(); 22 20 } 23 21 24 22 static const char *const at91_dt_board_compat[] __initconst = { ··· 26 28 27 29 DT_MACHINE_START(at91sam_dt, "Atmel AT91SAM9") 28 30 /* Maintainer: Atmel */ 31 + .init_late = at91sam9_pm_init, 29 32 .init_machine = at91sam9_init, 30 33 .dt_compat = at91_dt_board_compat, 31 34 MACHINE_END
+1 -2
arch/arm/mach-at91/sam9x60.c
··· 18 18 static void __init sam9x60_init(void) 19 19 { 20 20 of_platform_default_populate(NULL, NULL, NULL); 21 - 22 - sam9x60_pm_init(); 23 21 } 24 22 25 23 static const char *const sam9x60_dt_board_compat[] __initconst = { ··· 27 29 28 30 DT_MACHINE_START(sam9x60_dt, "Microchip SAM9X60") 29 31 /* Maintainer: Microchip */ 32 + .init_late = sam9x60_pm_init, 30 33 .init_machine = sam9x60_init, 31 34 .dt_compat = sam9x60_dt_board_compat, 32 35 MACHINE_END
+1 -2
arch/arm/mach-at91/sam9x7.c
··· 17 17 static void __init sam9x7_init(void) 18 18 { 19 19 of_platform_default_populate(NULL, NULL, NULL); 20 - 21 - sam9x7_pm_init(); 22 20 } 23 21 24 22 static const char * const sam9x7_dt_board_compat[] __initconst = { ··· 26 28 27 29 DT_MACHINE_START(sam9x7_dt, "Microchip SAM9X7") 28 30 /* Maintainer: Microchip */ 31 + .init_late = sam9x7_pm_init, 29 32 .init_machine = sam9x7_init, 30 33 .dt_compat = sam9x7_dt_board_compat, 31 34 MACHINE_END
+3 -2
arch/arm/mach-at91/sama5.c
··· 33 33 static void __init sama5_dt_device_init(void) 34 34 { 35 35 of_platform_default_populate(NULL, NULL, NULL); 36 - sama5_pm_init(); 37 36 } 38 37 39 38 static const char *const sama5_dt_board_compat[] __initconst = { ··· 42 43 43 44 DT_MACHINE_START(sama5_dt, "Atmel SAMA5") 44 45 /* Maintainer: Atmel */ 46 + .init_late = sama5_pm_init, 45 47 .init_machine = sama5_dt_device_init, 46 48 .dt_compat = sama5_dt_board_compat, 47 49 MACHINE_END ··· 55 55 DT_MACHINE_START(sama5_alt_dt, "Atmel SAMA5") 56 56 /* Maintainer: Atmel */ 57 57 .init_machine = sama5_dt_device_init, 58 + .init_late = sama5_pm_init, 58 59 .dt_compat = sama5_alt_dt_board_compat, 59 60 .l2c_aux_mask = ~0UL, 60 61 MACHINE_END ··· 63 62 static void __init sama5d2_init(void) 64 63 { 65 64 of_platform_default_populate(NULL, NULL, NULL); 66 - sama5d2_pm_init(); 67 65 } 68 66 69 67 static const char *const sama5d2_compat[] __initconst = { ··· 74 74 /* Maintainer: Atmel */ 75 75 .init_machine = sama5d2_init, 76 76 .init_early = sama5_secure_cache_init, 77 + .init_late = sama5d2_pm_init, 77 78 .dt_compat = sama5d2_compat, 78 79 .l2c_aux_mask = ~0UL, 79 80 MACHINE_END
+1 -1
arch/arm/mach-at91/sama7.c
··· 17 17 static void __init sama7_dt_device_init(void) 18 18 { 19 19 of_platform_default_populate(NULL, NULL, NULL); 20 - sama7_pm_init(); 21 20 } 22 21 23 22 static const char *const sama7_dt_board_compat[] __initconst = { ··· 26 27 27 28 DT_MACHINE_START(sama7_dt, "Microchip SAMA7") 28 29 /* Maintainer: Microchip */ 30 + .init_late = sama7_pm_init, 29 31 .init_machine = sama7_dt_device_init, 30 32 .dt_compat = sama7_dt_board_compat, 31 33 MACHINE_END