* [PATCH] video: ipuv3: fix building with disabled panel driver
@ 2020-05-25 22:09 Anatolij Gustschin
2020-06-19 13:42 ` Anatolij Gustschin
0 siblings, 1 reply; 2+ messages in thread
From: Anatolij Gustschin @ 2020-05-25 22:09 UTC (permalink / raw)
To: u-boot
Panel code might be disabled for some boards, make this
driver code optional.
Signed-off-by: Anatolij Gustschin <agust@denx.de>
---
drivers/video/imx/mxc_ipuv3_fb.c | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/drivers/video/imx/mxc_ipuv3_fb.c b/drivers/video/imx/mxc_ipuv3_fb.c
index c7a944c1d5..017a8fb22a 100644
--- a/drivers/video/imx/mxc_ipuv3_fb.c
+++ b/drivers/video/imx/mxc_ipuv3_fb.c
@@ -627,7 +627,6 @@ static int ipuv3_video_probe(struct udevice *dev)
#if defined(CONFIG_DISPLAY)
struct udevice *disp_dev;
#endif
- struct udevice *panel_dev;
u32 fb_start, fb_end;
int ret;
@@ -654,9 +653,13 @@ static int ipuv3_video_probe(struct udevice *dev)
return ret;
}
#endif
- ret = uclass_get_device(UCLASS_PANEL, 0, &panel_dev);
- if (panel_dev)
- panel_enable_backlight(panel_dev);
+ if (CONFIG_IS_ENABLED(PANEL)) {
+ struct udevice *panel_dev;
+
+ ret = uclass_get_device(UCLASS_PANEL, 0, &panel_dev);
+ if (panel_dev)
+ panel_enable_backlight(panel_dev);
+ }
uc_priv->xsize = gmode->xres;
uc_priv->ysize = gmode->yres;
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-06-19 13:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-25 22:09 [PATCH] video: ipuv3: fix building with disabled panel driver Anatolij Gustschin
2020-06-19 13:42 ` Anatolij Gustschin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox