OSDN Git Service

gpu: drm: exynos_hdmi: Remove duplicate initialization of regulator bulk consumer
authorMilo Kim <woogyom.kim@gmail.com>
Wed, 31 Aug 2016 06:14:27 +0000 (15:14 +0900)
committerInki Dae <daeinki@gmail.com>
Fri, 30 Sep 2016 15:39:32 +0000 (00:39 +0900)
The helper, devm_regulator_bulk_get() initializes the consumer as NULL,
so this code can be ignored.

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 42b0b98..e8fb6ef 100644 (file)
@@ -1669,10 +1669,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) {
                if (ret != -EPROBE_DEFER)