[PATCH 06/10] video: ipuv3: print error message when no modes are found

Sascha Hauer s.hauer at pengutronix.de
Wed Sep 23 04:47:27 PDT 2015


This is a common error, so print a message to inform the user
what went wrong.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 drivers/video/imx-ipu-v3/ipufb.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/drivers/video/imx-ipu-v3/ipufb.c b/drivers/video/imx-ipu-v3/ipufb.c
index 401f8f7..a96883c 100644
--- a/drivers/video/imx-ipu-v3/ipufb.c
+++ b/drivers/video/imx-ipu-v3/ipufb.c
@@ -329,8 +329,10 @@ static int ipufb_probe(struct device_d *dev)
 		}
 
 		ret = vpl_ioctl(&fbi->vpl, 2 + fbi->dino, VPL_GET_VIDEOMODES, &info->modes);
-		if (ret)
+		if (ret) {
+			dev_err(fbi->dev, "failed to get modes: %s\n", strerror(-ret));
 			return ret;
+		}
 
 		ret = register_framebuffer(info);
 		if (ret < 0) {
-- 
2.5.1




More information about the barebox mailing list