/*---------------------------------------------------------------------------*/
+#ifdef CONFIG_REGULATOR
static int rk_pm_enable_regulator(struct kbase_device *kbdev);
-
static void rk_pm_disable_regulator(struct kbase_device *kbdev);
+#else
+static inline int rk_pm_enable_regulator(struct kbase_device *kbdev)
+{
+ return 0;
+}
+static inline void rk_pm_disable_regulator(struct kbase_device *kbdev)
+{
+}
+#endif
static int rk_pm_enable_clk(struct kbase_device *kbdev);
/*---------------------------------------------------------------------------*/
+#ifdef CONFIG_REGULATOR
static int rk_pm_enable_regulator(struct kbase_device *kbdev)
{
int ret = 0;
D("to disable regulator.");
regulator_disable(kbdev->regulator);
}
+#endif
static int rk_pm_enable_clk(struct kbase_device *kbdev)
{