summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoonyoung Shim <jy0922.shim@samsung.com>2014-11-06 04:45:29 (GMT)
committerJoonyoung Shim <jy0922.shim@samsung.com>2014-11-06 05:21:58 (GMT)
commit5613d8654f91c69e6d736d58b378947949a508eb (patch)
treeb513f28124e114d46a758159093caab7c08b83bc
parent56379fbd548d351766cb941484c301b94f11c907 (diff)
downloadlinux-3.10-5613d8654f91c69e6d736d58b378947949a508eb.zip
linux-3.10-5613d8654f91c69e6d736d58b378947949a508eb.tar.gz
linux-3.10-5613d8654f91c69e6d736d58b378947949a508eb.tar.bz2
gpu: arm: mali400: fix buile warningrefs/changes/49/29949/2
drivers/gpu/arm/mali400/mali/platform/exynos4/exynos4.c: In function ‘mali_platform_init’: drivers/gpu/arm/mali400/mali/platform/exynos4/exynos4.c:346:2: warning: ignoring return value of ‘regulator_enable’, declared with attribute warn_unused_result [-Wunused-result] regulator_enable(mali->vdd_g3d); ^ Change-Id: I72d60e94e2f7380fcc7a457cf487368037d30b7a Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
-rw-r--r--drivers/gpu/arm/mali400/mali/platform/exynos4/exynos4.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/gpu/arm/mali400/mali/platform/exynos4/exynos4.c b/drivers/gpu/arm/mali400/mali/platform/exynos4/exynos4.c
index f534411..05e18c4 100644
--- a/drivers/gpu/arm/mali400/mali/platform/exynos4/exynos4.c
+++ b/drivers/gpu/arm/mali400/mali/platform/exynos4/exynos4.c
@@ -255,6 +255,7 @@ _mali_osk_errcode_t mali_platform_init(void)
struct resource *old_res, *new_res;
unsigned int i, irq_res, mem_res;
struct device_node *np;
+ int ret;
if (WARN_ON(!pdev))
return -ENODEV;
@@ -343,7 +344,11 @@ _mali_osk_errcode_t mali_platform_init(void)
INIT_WORK(&mali->dvfs_work, exynos_dvfs_work);
- regulator_enable(mali->vdd_g3d);
+ ret = regulator_enable(mali->vdd_g3d);
+ if (WARN_ON(ret)) {
+ destroy_workqueue(mali->dvfs_workqueue);
+ MALI_ERROR(_MALI_OSK_ERR_FAULT);
+ }
clk_set_parent(mali->mux1, mali->pll);
clk_set_parent(mali->mux2, mali->mux1);