diff options
| author | Milo Kim <woogyom.kim@gmail.com> | 2016-08-31 02:14:27 -0400 |
|---|---|---|
| committer | Inki Dae <daeinki@gmail.com> | 2016-09-30 11:39:32 -0400 |
| commit | c0d656dd2d76db1e7db61609ec8549d38ce0bbff (patch) | |
| tree | e18ad780e1e9ac2a2e67341d79920b754677f80f /drivers/gpu/drm/exynos | |
| parent | b5413022fd28bd5b1dbfd0ea8187100383109d47 (diff) | |
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: Milo Kim <woogyom.kim@gmail.com>
Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
Diffstat (limited to 'drivers/gpu/drm/exynos')
| -rw-r--r-- | drivers/gpu/drm/exynos/exynos_hdmi.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c b/drivers/gpu/drm/exynos/exynos_hdmi.c index 42b0b98109df..e8fb6ef947ee 100644 --- a/drivers/gpu/drm/exynos/exynos_hdmi.c +++ b/drivers/gpu/drm/exynos/exynos_hdmi.c | |||
| @@ -1669,10 +1669,9 @@ static int hdmi_resources_init(struct hdmi_context *hdata) | |||
| 1669 | if (ret) | 1669 | if (ret) |
| 1670 | return ret; | 1670 | return ret; |
| 1671 | 1671 | ||
| 1672 | for (i = 0; i < ARRAY_SIZE(supply); ++i) { | 1672 | for (i = 0; i < ARRAY_SIZE(supply); ++i) |
| 1673 | hdata->regul_bulk[i].supply = supply[i]; | 1673 | hdata->regul_bulk[i].supply = supply[i]; |
| 1674 | hdata->regul_bulk[i].consumer = NULL; | 1674 | |
| 1675 | } | ||
| 1676 | ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(supply), hdata->regul_bulk); | 1675 | ret = devm_regulator_bulk_get(dev, ARRAY_SIZE(supply), hdata->regul_bulk); |
| 1677 | if (ret) { | 1676 | if (ret) { |
| 1678 | if (ret != -EPROBE_DEFER) | 1677 | if (ret != -EPROBE_DEFER) |
