summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorSeung-Woo Kim <sw0312.kim@samsung.com>2013-06-05 14:34:38 +0900
committerChanho Park <chanho61.park@samsung.com>2014-11-18 11:44:01 +0900
commit79e1e4d9541ff20f558ed386d923c3d9c33bfa97 (patch)
treec8947bff82d58aa7d97f86f2969f13241681ded3 /drivers
parent940f4f27578afe05ad79663fef041ac14a57e011 (diff)
downloadlinux-3.10-79e1e4d9541ff20f558ed386d923c3d9c33bfa97.tar.gz
linux-3.10-79e1e4d9541ff20f558ed386d923c3d9c33bfa97.tar.bz2
linux-3.10-79e1e4d9541ff20f558ed386d923c3d9c33bfa97.zip
drm/exynos: remove ignoring return value warning in hdmi
The definition of regulator_bulk_enable is fixed with __must_check and this causes following build warning. warning: ignoring return value of 'regulator_bulk_enable', declared with attribute warn_unused_result This patch fixes to check return value of the function. Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/exynos/exynos_hdmi.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c b/drivers/gpu/drm/exynos/exynos_hdmi.c
index 299bf6ec339..030b86346b7 100644
--- a/drivers/gpu/drm/exynos/exynos_hdmi.c
+++ b/drivers/gpu/drm/exynos/exynos_hdmi.c
@@ -1699,7 +1699,9 @@ static void hdmi_poweron(struct hdmi_context *hdata)
mutex_unlock(&hdata->hdmi_mutex);
- regulator_bulk_enable(res->regul_count, res->regul_bulk);
+ if (regulator_bulk_enable(res->regul_count, res->regul_bulk))
+ DRM_DEBUG_KMS("failed to enable regulator bulk\n");
+
clk_enable(res->hdmiphy);
clk_enable(res->hdmi);
clk_enable(res->sclk_hdmi);