diff options
author | Maxime Ripard <maxime.ripard@free-electrons.com> | 2018-01-10 16:59:41 +0100 |
---|---|---|
committer | Maxime Ripard <maxime.ripard@free-electrons.com> | 2018-01-15 10:16:56 +0100 |
commit | a0d605372a279d71abd29ed985b9a51e66e12170 (patch) | |
tree | e3e873ce0c06c5fbab93ae13f6383732280bdf4d /sound/arm | |
parent | 86a3ae587980f857284a11b86ef345f47298aade (diff) | |
download | talos-op-linux-a0d605372a279d71abd29ed985b9a51e66e12170.tar.gz talos-op-linux-a0d605372a279d71abd29ed985b9a51e66e12170.zip |
drm/panel: lvds: Handle the optional regulator case properly
The devm_regulator_get_optional function, unlike it was assumed in the
commit a1c55bccf600 ("drm/panel: lvds: Add support for the power-supply
property"), is actually returning an error pointer with -ENODEV instead of
NULL when there's no regulator to find.
Make sure we handle that case properly.
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Tested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Fixes: a1c55bccf600 ("drm/panel: lvds: Add support for the power-supply property")
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180110155941.16109-1-maxime.ripard@free-electrons.com
Diffstat (limited to 'sound/arm')
0 files changed, 0 insertions, 0 deletions