From: Andrzej Hajda Date: Tue, 25 Oct 2016 10:49:00 +0000 (+0200) Subject: gpu: drm: exynos_hdmi: Remove duplicate initialization of regulator bulk consumer X-Git-Tag: submit/tizen/20161216.052309~52 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5c3ed183317b18bfff238556243c9713d3bfb536;p=platform%2Fkernel%2Flinux-exynos.git gpu: drm: exynos_hdmi: Remove duplicate initialization of regulator bulk consumer The helper, devm_regulator_bulk_get() initializes the consumer as NULL, so this code can be ignored. Change-Id: Ib23cf62b86f9aacb6e23b64b7716a77d96da87f8 Signed-off-by: Milo Kim Reviewed-by: Andrzej Hajda Signed-off-by: Inki Dae --- diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c b/drivers/gpu/drm/exynos/exynos_hdmi.c index a9f3ea418b21..1520714a0e2a 100644 --- a/drivers/gpu/drm/exynos/exynos_hdmi.c +++ b/drivers/gpu/drm/exynos/exynos_hdmi.c @@ -1804,10 +1804,9 @@ static int hdmi_resources_init(struct hdmi_context *hdata) if (ret) return ret; - for (i = 0; i < ARRAY_SIZE(supply); ++i) { + for (i = 0; i < ARRAY_SIZE(supply); ++i) hdata->regul_bulk[i].supply = supply[i]; - hdata->regul_bulk[i].consumer = NULL; - } + ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(supply), hdata->regul_bulk); if (ret) { DRM_ERROR("failed to get regulators\n");