|
@@ -34,7 +34,7 @@ static struct pm_clk_notifier_block platform_bus_notifier = {
|
|
|
|
|
|
static int __init sh_pm_runtime_init(void)
|
|
static int __init sh_pm_runtime_init(void)
|
|
{
|
|
{
|
|
- if (IS_ENABLED(CONFIG_ARCH_SHMOBILE)) {
|
|
|
|
|
|
+ if (IS_ENABLED(CONFIG_OF) && IS_ENABLED(CONFIG_ARCH_SHMOBILE)) {
|
|
if (!of_find_compatible_node(NULL, NULL,
|
|
if (!of_find_compatible_node(NULL, NULL,
|
|
"renesas,cpg-mstp-clocks"))
|
|
"renesas,cpg-mstp-clocks"))
|
|
return 0;
|
|
return 0;
|