mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 19:08:57 +09:00
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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user