Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c0d656dd authored by Milo Kim's avatar Milo Kim Committed by Inki Dae
Browse files

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.

Signed-off-by: default avatarMilo Kim <woogyom.kim@gmail.com>
Reviewed-by: default avatarAndrzej Hajda <a.hajda@samsung.com>
Signed-off-by: default avatarInki Dae <inki.dae@samsung.com>
parent b5413022
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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)