]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: at91: move at91rm9200_idle() to clk/at91/pmc.c
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Thu, 15 Jan 2015 14:59:31 +0000 (15:59 +0100)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Fri, 16 Jan 2015 17:08:42 +0000 (18:08 +0100)
Move at91rm9200_idle() along with at91sam9_idle() in clk/at91/pmc.c.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Michael Turquette <mturquette@linaro.org>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
arch/arm/mach-at91/at91rm9200.c
arch/arm/mach-at91/generic.h
drivers/clk/at91/pmc.c

index fc7c261380379e2f626f0bf5ca8ce7728bd2a696..3be1963f5c564746d84eb81352e41f9c0f73c9de 100644 (file)
 #include "soc.h"
 #include "generic.h"
 
-static void at91rm9200_idle(void)
-{
-       /*
-        * Disable the processor clock.  The processor will be automatically
-        * re-enabled by an interrupt or by a reset.
-        */
-       at91_pmc_write(AT91_PMC_SCDR, AT91_PMC_PCK);
-}
 
 static void at91rm9200_restart(enum reboot_mode reboot_mode, const char *cmd)
 {
@@ -49,7 +41,6 @@ static void __init at91rm9200_initialize(void)
        arm_pm_restart = at91rm9200_restart;
 }
 
-
 AT91_SOC_START(at91rm9200)
        .init = at91rm9200_initialize,
 AT91_SOC_END
index 1823a779182d45fa011497d240600ffdb2d96911..44fc725edcf1668e3c5a03cade7507363da3212a 100644 (file)
@@ -25,6 +25,7 @@ extern void __init at91_dt_initialize(void);
 extern void at91rm9200_timer_init(void);
 
 /* idle */
+extern void at91rm9200_idle(void);
 extern void at91sam9_idle(void);
 
 /* Matrix */
index 386999b4f8eb2d20b3af4195a6beac8c7221efe3..f07c8152e5cc42aa660f5c83c6c6470ee2e68502 100644 (file)
 void __iomem *at91_pmc_base;
 EXPORT_SYMBOL_GPL(at91_pmc_base);
 
+void at91rm9200_idle(void)
+{
+       /*
+        * Disable the processor clock.  The processor will be automatically
+        * re-enabled by an interrupt or by a reset.
+        */
+       at91_pmc_write(AT91_PMC_SCDR, AT91_PMC_PCK);
+}
+
 void at91sam9_idle(void)
 {
        at91_pmc_write(AT91_PMC_SCDR, AT91_PMC_PCK);