mako: fix compile error without PM_RUNTIME
Change-Id: Ie1703e004fb92d6d7ddfdd1366a2376a27b95f94
diff --git a/drivers/misc/smsc_hub.c b/drivers/misc/smsc_hub.c
index bde25d9..b11474a 100644
--- a/drivers/misc/smsc_hub.c
+++ b/drivers/misc/smsc_hub.c
@@ -311,6 +311,7 @@
return 0;
}
+#endif
static int smsc_hub_lpm_enter(struct device *dev)
{
@@ -335,13 +336,14 @@
}
return ret;
}
-#endif
#ifdef CONFIG_PM
static const struct dev_pm_ops smsc_hub_dev_pm_ops = {
SET_SYSTEM_SLEEP_PM_OPS(smsc_hub_lpm_enter, smsc_hub_lpm_exit)
+#ifdef CONFIG_PM_RUNTIME
SET_RUNTIME_PM_OPS(smsc_hub_lpm_enter, smsc_hub_lpm_exit,
msm_smsc_runtime_idle)
+#endif
};
#endif