gpu: drm: exynos_hdmi: Remove duplicate initialization of regulator bulk consumer
authorAndrzej Hajda <a.hajda@samsung.com>
Tue, 25 Oct 2016 10:49:00 +0000 (12:49 +0200)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 14 Dec 2016 04:54:15 +0000 (13:54 +0900)
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 <woogyom.kim@gmail.com>
Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_hdmi.c

index a9f3ea418b21939b27497b023d6df146a4506a7c..1520714a0e2a3205cc2e67469f5d9db609872850 100644 (file)
@@ -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");