cpuidle: big.LITTLE: add of_device_id structure
[deliverable/linux.git] / drivers / cpuidle / cpuidle-big_little.c
index b45fc6249041b124b0600c1b4c5fc597d98389a9..4cd02bd2e3ba886238213d63e95f7da6d2d1ed4e 100644 (file)
@@ -163,14 +163,23 @@ static int __init bl_idle_driver_init(struct cpuidle_driver *drv, int cpu_id)
        return 0;
 }
 
+static const struct of_device_id compatible_machine_match[] = {
+       { .compatible = "arm,vexpress,v2p-ca15_a7" },
+       {},
+};
+
 static int __init bl_idle_init(void)
 {
        int ret;
+       struct device_node *root = of_find_node_by_path("/");
+
+       if (!root)
+               return -ENODEV;
 
        /*
         * Initialize the driver just for a compliant set of machines
         */
-       if (!of_machine_is_compatible("arm,vexpress,v2p-ca15_a7"))
+       if (!of_match_node(compatible_machine_match, root))
                return -ENODEV;
        /*
         * For now the differentiation between little and big cores
This page took 0.024986 seconds and 5 git commands to generate.