Skip to content

Commit

Permalink
drm/exynos: remove ignoring return value warning in hdmi
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Seung-Woo Kim authored and Inki Dae committed Jun 28, 2013
1 parent a7f98d6 commit ad07945
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/gpu/drm/exynos/exynos_hdmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ad07945

Please sign in to comment.