aboutsummaryrefslogtreecommitdiff
path: root/drivers/video/simple_panel.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/simple_panel.c')
-rw-r--r--drivers/video/simple_panel.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/video/simple_panel.c b/drivers/video/simple_panel.c
index c8f7022ea63..91c91ee75d8 100644
--- a/drivers/video/simple_panel.c
+++ b/drivers/video/simple_panel.c
@@ -63,12 +63,15 @@ static int simple_panel_of_to_plat(struct udevice *dev)
return ret;
}
}
+
ret = uclass_get_device_by_phandle(UCLASS_PANEL_BACKLIGHT, dev,
- "backlight", &priv->backlight);
+ "backlight", &priv->backlight);
if (ret) {
debug("%s: Cannot get backlight: ret=%d\n", __func__, ret);
- return log_ret(ret);
+ if (ret != -ENOENT)
+ return log_ret(ret);
}
+
ret = gpio_request_by_name(dev, "enable-gpios", 0, &priv->enable,
GPIOD_IS_OUT);
if (ret) {