ARM: zynq: cpuidle: Remove useless compatibility string
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 27 Sep 2013 07:46:09 +0000 (09:46 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 7 Oct 2013 14:46:56 +0000 (16:46 +0200)
All zynq platforms have this compatibility string and there is no any other
clone.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: Michal Simek <michal.simek@xilinx.com>
drivers/cpuidle/cpuidle-zynq.c

index 38e03a18359156077e17d8f5b35671de47bf6d8e..ab6c4b4ffc7bec8eb8490b02be7e66aeba862304 100644 (file)
@@ -28,7 +28,6 @@
 #include <linux/init.h>
 #include <linux/cpu_pm.h>
 #include <linux/cpuidle.h>
-#include <linux/of.h>
 #include <asm/proc-fns.h>
 #include <asm/cpuidle.h>
 
@@ -72,9 +71,6 @@ static struct cpuidle_driver zynq_idle_driver = {
 /* Initialize CPU idle by registering the idle states */
 static int __init zynq_cpuidle_init(void)
 {
-       if (!of_machine_is_compatible("xlnx,zynq-7000"))
-               return -ENODEV;
-
        pr_info("Xilinx Zynq CpuIdle Driver started\n");
 
        return cpuidle_register(&zynq_idle_driver, NULL);