[PATCH] drm/meson: dw-hdmi: Fix devm_regulator_*get_enable*() conversion again

Martin Blumenstingl martin.blumenstingl at googlemail.com
Thu Mar 9 13:38:43 PST 2023


On Thu, Mar 9, 2023 at 4:24 PM Marek Szyprowski
<m.szyprowski at samsung.com> wrote:
>
> 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 at collabora.com>
> Fixes: 67d0a30128c9 ("drm/meson: dw-hdmi: Fix devm_regulator_*get_enable*() conversion")
> Signed-off-by: Marek Szyprowski <m.szyprowski at samsung.com>
Acked-by: Martin Blumenstingl <martin.blumenstingl at googlemail.com>



More information about the linux-amlogic mailing list