diff options
author | Seung-Woo Kim <sw0312.kim@samsung.com> | 2013-06-05 14:34:38 +0900 |
---|---|---|
committer | Show Liu <show.liu@linaro.org> | 2014-04-28 11:37:11 +0800 |
commit | 6881e6fcdd98aca7b69948d7be98183a0ff028bb (patch) | |
tree | 9469ba6f926ba03a2a741a831b60b6a4c9b7dece | |
parent | 57ee9ba738d95a40f82050c496f2b4f55570de59 (diff) |
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.
Upstream commit ID: ad07945a8578
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_hdmi.c | 4 |
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 02065bb6d77..a2f6e75bdd6 100644 --- a/drivers/gpu/drm/exynos/exynos_hdmi.c +++ b/drivers/gpu/drm/exynos/exynos_hdmi.c @@ -1700,7 +1700,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_prepare_enable(res->hdmiphy); clk_prepare_enable(res->hdmi); clk_prepare_enable(res->sclk_hdmi); |