Skip to content
Commit 67d0a301 authored by Marek Szyprowski's avatar Marek Szyprowski Committed by Neil Armstrong
Browse files

drm/meson: dw-hdmi: Fix devm_regulator_*get_enable*() conversion



devm_regulator_get_enable_optional() function returns 0 on success, so
use it for the check if function succeeded instead of the -ENODEV value.

Fixes: 429e8706 ("drm/meson: dw-hdmi: Use devm_regulator_*get_enable*()")
Signed-off-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
Acked-by: default avatarNeil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: default avatarNeil Armstrong <neil.armstrong@linaro.org>
[narmstrong: s/succeeded/succeeded/ in commit message]
Link: https://patchwork.freedesktop.org/patch/msgid/20230109220033.31202-1-m.szyprowski@samsung.com
parent 2349183d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment