summaryrefslogtreecommitdiff
path: root/drivers/video
diff options
context:
space:
mode:
authorLeonard Crestez <leonard.crestez@nxp.com>2018-02-23 18:03:04 +0200
committerLeonard Crestez <leonard.crestez@nxp.com>2018-08-24 12:41:33 +0300
commitd835b376840e8196e3e5b486b455eabb598fe642 (patch)
tree1fc37f430511b5eeecdd67af13b57d8f177b1aad /drivers/video
parent58010ecad81ca61fb558afed79eec2fddd28bd1a (diff)
video: mxfsb: Fix endless -EPROBE_DEFER with empty disp_dev
Since f7b48681ec68 ("MLK-16137 video: fbdev: add defer probe for mxs framebuffer") the mxsfb_dispdrv_init function will return -EPROBE_DEFER on all mxc_dispdrv_gethandle failures. That makes sense because all mxc_dispdrv_entry are registered in their respective probe functions and an absent entry should result in probing mxsfb later. However in some cases an the disp_dev is empty and those configurations now result in enless EPROBE_DEFER loops. Fix this by accepting empty disp_dev at the start of mxsfb_dispdrv_init. Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com> Reviewed-by: Robert Chiras <robert.chiras@nxp.com>
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/fbdev/mxsfb.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/video/fbdev/mxsfb.c b/drivers/video/fbdev/mxsfb.c
index 15ab40234ab6..98cd5e3f0105 100644
--- a/drivers/video/fbdev/mxsfb.c
+++ b/drivers/video/fbdev/mxsfb.c
@@ -1474,6 +1474,9 @@ static int mxsfb_dispdrv_init(struct platform_device *pdev,
struct device *dev = &pdev->dev;
char disp_dev[32];
+ if (!strlen(host->disp_dev))
+ return 0;
+
memset(&setting, 0x0, sizeof(setting));
setting.fbi = fbi;
memcpy(disp_dev, host->disp_dev, strlen(host->disp_dev));