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
|
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| panel-ilitek-ili9322.c | ||
| panel-innolux-p079zca.c | ||
| panel-jdi-lt070me05000.c | ||
| panel-lg-lg4573.c | ||
| panel-lvds.c | ||
| panel-orisetech-otm8009a.c | ||
| panel-panasonic-vvx10f034n00.c | ||
| panel-raspberrypi-touchscreen.c | ||
| panel-samsung-ld9040.c | ||
| panel-samsung-s6e3ha2.c | ||
| panel-samsung-s6e8aa0.c | ||
| panel-samsung-s6e63j0x03.c | ||
| panel-seiko-43wvf1g.c | ||
| panel-sharp-lq101r1sx01.c | ||
| panel-sharp-ls043t1le01.c | ||
| panel-simple.c | ||
| panel-sitronix-st7789v.c | ||