summaryrefslogtreecommitdiff
path: root/arch/arm/mach-highbank
diff options
context:
space:
mode:
authorDaniel Lezcano <daniel.lezcano@linaro.org>2013-09-27 10:47:45 (GMT)
committerRob Herring <rob.herring@calxeda.com>2013-10-01 21:30:20 (GMT)
commit60a66e370007e8535b7a561353b07b37deaf35ba (patch)
tree30bac2353ff9dd8f72b898b3933d0b14645ca251 /arch/arm/mach-highbank
parent34a5eeb202eb43f36dd39a287669e0b686ddf728 (diff)
downloadlinux-60a66e370007e8535b7a561353b07b37deaf35ba.tar.xz
ARM: highbank: cpuidle: convert to platform driver
As the ux500 and the kirkwood driver, make the calxeda driver a platform driver [Compiled only] Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Diffstat (limited to 'arch/arm/mach-highbank')
-rw-r--r--arch/arm/mach-highbank/highbank.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-highbank/highbank.c b/arch/arm/mach-highbank/highbank.c
index 8e63ccd..a78ed62 100644
--- a/arch/arm/mach-highbank/highbank.c
+++ b/arch/arm/mach-highbank/highbank.c
@@ -25,6 +25,7 @@
#include <linux/of_address.h>
#include <linux/amba/bus.h>
#include <linux/clk-provider.h>
+#include <linux/platform_device.h>
#include <asm/cacheflush.h>
#include <asm/cputype.h>
@@ -153,6 +154,10 @@ static struct notifier_block highbank_platform_nb = {
.notifier_call = highbank_platform_notifier,
};
+static struct platform_device highbank_cpuidle_device = {
+ .name = "cpuidle-calxeda",
+};
+
static void __init highbank_init(void)
{
pm_power_off = highbank_power_off;
@@ -162,6 +167,9 @@ static void __init highbank_init(void)
bus_register_notifier(&amba_bustype, &highbank_amba_nb);
of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
+
+ if (of_machine_is_compatible("calxeda,highbank"))
+ platform_device_register(&highbank_cpuidle_device);
}
static const char *highbank_match[] __initconst = {