MALI: midgard: RK: fix compiling fail without CONFIG_REGULATOR defined

Change-Id: I4eb6fcae00d934c1fc2cbffc888a88c2fda9c22d
Signed-off-by: chenzhen <chenzhen@rock-chips.com>
This commit is contained in:
chenzhen
2016-09-01 16:16:15 +08:00
committed by Huang, Tao
parent 916f671c48
commit 46b99d8fb3

View File

@@ -42,9 +42,18 @@
/*---------------------------------------------------------------------------*/
#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);
@@ -249,6 +258,7 @@ void kbase_platform_rk_shutdown(struct kbase_device *kbdev)
/*---------------------------------------------------------------------------*/
#ifdef CONFIG_REGULATOR
static int rk_pm_enable_regulator(struct kbase_device *kbdev)
{
int ret = 0;
@@ -279,6 +289,7 @@ static void rk_pm_disable_regulator(struct kbase_device *kbdev)
D("to disable regulator.");
regulator_disable(kbdev->regulator);
}
#endif
static int rk_pm_enable_clk(struct kbase_device *kbdev)
{