diff options
author | Alexander Shiyan <shc_work@mail.ru> | 2014-06-19 19:26:35 +0400 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2014-07-06 16:52:15 -0700 |
commit | 2d57f248c7ffee5eb2f86a4a6901293fc0e646a9 (patch) | |
tree | 735cbf81e81a21bbc9522c668621741be5bee5dd /arch/arm/mach-clps711x/devices.c | |
parent | dd99eef5f6472e30b6e13f6f4622f58e94d46809 (diff) | |
download | linux-2d57f248c7ffee5eb2f86a4a6901293fc0e646a9.tar.bz2 |
ARM: clps711x: Switch CLPS711X subarch to use cpuidle driver
This patch removes old support for cpuidle and switches all current
users to use new cpuidle driver.
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'arch/arm/mach-clps711x/devices.c')
-rw-r--r-- | arch/arm/mach-clps711x/devices.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/arm/mach-clps711x/devices.c b/arch/arm/mach-clps711x/devices.c index 2001488a5ef2..0c689d3a6710 100644 --- a/arch/arm/mach-clps711x/devices.c +++ b/arch/arm/mach-clps711x/devices.c @@ -14,6 +14,15 @@ #include <mach/hardware.h> +static const struct resource clps711x_cpuidle_res __initconst = + DEFINE_RES_MEM(CLPS711X_PHYS_BASE + HALT, SZ_128); + +static void __init clps711x_add_cpuidle(void) +{ + platform_device_register_simple("clps711x-cpuidle", PLATFORM_DEVID_NONE, + &clps711x_cpuidle_res, 1); +} + static const phys_addr_t clps711x_gpios[][2] __initconst = { { PADR, PADDR }, { PBDR, PBDDR }, @@ -83,6 +92,7 @@ static void __init clps711x_add_uart(void) void __init clps711x_devices_init(void) { + clps711x_add_cpuidle(); clps711x_add_gpio(); clps711x_add_syscon(); clps711x_add_uart(); |