diff options
Diffstat (limited to 'drivers/sh/pm_runtime.c')
-rw-r--r-- | drivers/sh/pm_runtime.c | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/drivers/sh/pm_runtime.c b/drivers/sh/pm_runtime.c index d3d1891cda3c..25abd4eb7d10 100644 --- a/drivers/sh/pm_runtime.c +++ b/drivers/sh/pm_runtime.c | |||
@@ -35,20 +35,11 @@ static struct pm_clk_notifier_block platform_bus_notifier = { | |||
35 | static int __init sh_pm_runtime_init(void) | 35 | static int __init sh_pm_runtime_init(void) |
36 | { | 36 | { |
37 | if (IS_ENABLED(CONFIG_ARCH_SHMOBILE_MULTI)) { | 37 | if (IS_ENABLED(CONFIG_ARCH_SHMOBILE_MULTI)) { |
38 | if (!of_machine_is_compatible("renesas,emev2") && | 38 | if (!of_find_compatible_node(NULL, NULL, |
39 | !of_machine_is_compatible("renesas,r7s72100") && | 39 | "renesas,cpg-mstp-clocks")) |
40 | #ifndef CONFIG_PM_GENERIC_DOMAINS_OF | 40 | return 0; |
41 | !of_machine_is_compatible("renesas,r8a73a4") && | 41 | if (IS_ENABLED(CONFIG_PM_GENERIC_DOMAINS_OF) && |
42 | !of_machine_is_compatible("renesas,r8a7740") && | 42 | of_find_node_with_property(NULL, "#power-domain-cells")) |
43 | !of_machine_is_compatible("renesas,sh73a0") && | ||
44 | #endif | ||
45 | !of_machine_is_compatible("renesas,r8a7778") && | ||
46 | !of_machine_is_compatible("renesas,r8a7779") && | ||
47 | !of_machine_is_compatible("renesas,r8a7790") && | ||
48 | !of_machine_is_compatible("renesas,r8a7791") && | ||
49 | !of_machine_is_compatible("renesas,r8a7792") && | ||
50 | !of_machine_is_compatible("renesas,r8a7793") && | ||
51 | !of_machine_is_compatible("renesas,r8a7794")) | ||
52 | return 0; | 43 | return 0; |
53 | } | 44 | } |
54 | 45 | ||