Skip to content

Commit

Permalink
ARM: at91: sam9: set arm_pm_idle from sam9_dt_device_init
Browse files Browse the repository at this point in the history
As all sam9 SoCs are setting arm_pm_idle to at91sam9_idle(), do it from
sam9_dt_device_init().

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Suggested-by: Arnd Bergmann <arnd@arndb.de>
[nicolas.ferre@atmel.com: adapt patch to newer series]
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
  • Loading branch information
Alexandre Belloni authored and Nicolas Ferre committed Jan 26, 2015
1 parent 4fe604c commit b9f122c
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 40 deletions.
6 changes: 0 additions & 6 deletions arch/arm/mach-at91/at91sam9260.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,5 @@
* AT91SAM9260 processor initialization
* -------------------------------------------------------------------- */

static void __init at91sam9260_initialize(void)
{
arm_pm_idle = at91sam9_idle;
}

AT91_SOC_START(at91sam9260)
.init = at91sam9260_initialize,
AT91_SOC_END
6 changes: 0 additions & 6 deletions arch/arm/mach-at91/at91sam9261.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,5 @@
* AT91SAM9261 processor initialization
* -------------------------------------------------------------------- */

static void __init at91sam9261_initialize(void)
{
arm_pm_idle = at91sam9_idle;
}

AT91_SOC_START(at91sam9261)
.init = at91sam9261_initialize,
AT91_SOC_END
6 changes: 0 additions & 6 deletions arch/arm/mach-at91/at91sam9263.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,5 @@
* AT91SAM9263 processor initialization
* -------------------------------------------------------------------- */

static void __init at91sam9263_initialize(void)
{
arm_pm_idle = at91sam9_idle;
}

AT91_SOC_START(at91sam9263)
.init = at91sam9263_initialize,
AT91_SOC_END
5 changes: 0 additions & 5 deletions arch/arm/mach-at91/at91sam9g45.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@
/* --------------------------------------------------------------------
* AT91SAM9G45 processor initialization
* -------------------------------------------------------------------- */
static void __init at91sam9g45_initialize(void)
{
arm_pm_idle = at91sam9_idle;
}

AT91_SOC_START(at91sam9g45)
.init = at91sam9g45_initialize,
AT91_SOC_END
5 changes: 0 additions & 5 deletions arch/arm/mach-at91/at91sam9n12.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@
/* --------------------------------------------------------------------
* AT91SAM9N12 processor initialization
* -------------------------------------------------------------------- */
static void __init at91sam9n12_initialize(void)
{
arm_pm_idle = at91sam9_idle;
}

AT91_SOC_START(at91sam9n12)
.init = at91sam9n12_initialize,
AT91_SOC_END
6 changes: 0 additions & 6 deletions arch/arm/mach-at91/at91sam9rl.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,5 @@
* AT91SAM9RL processor initialization
* -------------------------------------------------------------------- */

static void __init at91sam9rl_initialize(void)
{
arm_pm_idle = at91sam9_idle;
}

AT91_SOC_START(at91sam9rl)
.init = at91sam9rl_initialize,
AT91_SOC_END
6 changes: 0 additions & 6 deletions arch/arm/mach-at91/at91sam9x5.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,5 @@
* AT91SAM9x5 processor initialization
* -------------------------------------------------------------------- */

static void __init at91sam9x5_initialize(void)
{
arm_pm_idle = at91sam9_idle;
}

AT91_SOC_START(at91sam9x5)
.init = at91sam9x5_initialize,
AT91_SOC_END
7 changes: 7 additions & 0 deletions arch/arm/mach-at91/board-dt-sam9.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include <linux/of_platform.h>
#include <linux/clk-provider.h>

#include <asm/system_misc.h>
#include <asm/setup.h>
#include <asm/irq.h>
#include <asm/mach/arch.h>
Expand All @@ -26,7 +27,9 @@

static void __init sam9_dt_device_init(void)
{
arm_pm_idle = at91sam9_idle;
at91_sam9260_pm_init();

of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
}

Expand All @@ -45,7 +48,9 @@ MACHINE_END

static void __init sam9g45_dt_device_init(void)
{
arm_pm_idle = at91sam9_idle;
at91_sam9g45_pm_init();

of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
}

Expand All @@ -64,7 +69,9 @@ MACHINE_END

static void __init sam9x5_dt_device_init(void)
{
arm_pm_idle = at91sam9_idle;
at91_sam9x5_pm_init();

of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
}

Expand Down

0 comments on commit b9f122c

Please sign in to comment.