drm/meson: dw-hdmi: Fix devm_regulator_*get_enable*() conversion again
authorMarek Szyprowski <m.szyprowski@samsung.com>
Thu, 9 Mar 2023 15:24:46 +0000 (16:24 +0100)
committerNeil Armstrong <neil.armstrong@linaro.org>
Wed, 15 Mar 2023 09:06:46 +0000 (10:06 +0100)
commit4028cbf867f70a3c599c9b0c9509334c56ed97d7
tree687669eb7d8989868726d469a64fcd844aa67168
parent0d3c9333d976af41d7dbc6bf4d9d2e95fbdf9c89
drm/meson: dw-hdmi: Fix devm_regulator_*get_enable*() conversion again

devm_regulator_get_enable_optional() returns -ENODEV if requested
optional regulator is not present. Adjust code for that, because in the
67d0a30128c9 I've incorrectly assumed that it also returns 0 when
regulator is not present.

Reported-by: Ricardo CaƱuelo <ricardo.canuelo@collabora.com>
Fixes: 67d0a30128c9 ("drm/meson: dw-hdmi: Fix devm_regulator_*get_enable*() conversion")
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Acked-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Acked-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20230309152446.104913-1-m.szyprowski@samsung.com
drivers/gpu/drm/meson/meson_dw_hdmi.c