diff options
Diffstat (limited to 'patches.tizen/0545-drm-exynos-remove-ignoring-return-value-warning-in-h.patch')
-rw-r--r-- | patches.tizen/0545-drm-exynos-remove-ignoring-return-value-warning-in-h.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/patches.tizen/0545-drm-exynos-remove-ignoring-return-value-warning-in-h.patch b/patches.tizen/0545-drm-exynos-remove-ignoring-return-value-warning-in-h.patch new file mode 100644 index 00000000000..0ea5e9c28c3 --- /dev/null +++ b/patches.tizen/0545-drm-exynos-remove-ignoring-return-value-warning-in-h.patch @@ -0,0 +1,37 @@ +From 9b08772e3ac9aeef9327e2823bb7dfbbe636a557 Mon Sep 17 00:00:00 2001 +From: Seung-Woo Kim <sw0312.kim@samsung.com> +Date: Wed, 5 Jun 2013 14:34:38 +0900 +Subject: [PATCH 0545/1302] 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> +Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com> +--- + drivers/gpu/drm/exynos/exynos_hdmi.c | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c b/drivers/gpu/drm/exynos/exynos_hdmi.c +index 299bf6e..030b863 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); +-- +1.8.3.2 + |