Skip to content

Commit faf6dc6

Browse files
ARM: at91: pm: remove unnecessary at91sam9x60_idle
cpu_do_idle() is already the default action for arm_pm_idle, there is no need to open code it. Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com> Link: https://lore.kernel.org/r/20200804115622.63232-1-alexandre.belloni@bootlin.com
1 parent e222f94 commit faf6dc6

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

  • arch/arm/mach-at91

arch/arm/mach-at91/pm.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -558,11 +558,6 @@ static void at91rm9200_idle(void)
558558
writel(AT91_PMC_PCK, soc_pm.data.pmc + AT91_PMC_SCDR);
559559
}
560560

561-
static void at91sam9x60_idle(void)
562-
{
563-
cpu_do_idle();
564-
}
565-
566561
static void at91sam9_idle(void)
567562
{
568563
writel(AT91_PMC_PCK, soc_pm.data.pmc + AT91_PMC_SCDR);
@@ -907,7 +902,7 @@ void __init sam9x60_pm_init(void)
907902
at91_pm_modes_validate(modes, ARRAY_SIZE(modes));
908903
at91_pm_modes_init();
909904
at91_dt_ramc();
910-
at91_pm_init(at91sam9x60_idle);
905+
at91_pm_init(NULL);
911906

912907
soc_pm.ws_ids = sam9x60_ws_ids;
913908
soc_pm.config_pmc_ws = at91_sam9x60_config_pmc_ws;

0 commit comments

Comments
 (0)