summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2014-05-06 12:57:28 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-05-08 09:55:06 +0200
commit73ebc58ed112f1115fb215cd0d93d2e9a9ffc282 (patch)
tree8136418c44b91262d4e596831957dadd97124fbc
parent842baddf1d9f3912ae1dcc79d403f6798d12db49 (diff)
downloadbarebox-73ebc58ed112f1115fb215cd0d93d2e9a9ffc282.tar.gz
video: i.MX IPUv3: Print error as string
And add a missing newline. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--drivers/video/imx-ipu-v3/ipu-common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/imx-ipu-v3/ipu-common.c b/drivers/video/imx-ipu-v3/ipu-common.c
index ffd6ec1..5f3b0bb 100644
--- a/drivers/video/imx-ipu-v3/ipu-common.c
+++ b/drivers/video/imx-ipu-v3/ipu-common.c
@@ -774,7 +774,7 @@ static int ipu_probe(struct device_d *dev)
ipu->clk = clk_get(dev, "bus");
if (IS_ERR(ipu->clk)) {
ret = PTR_ERR(ipu->clk);
- dev_err(dev, "clk_get failed with %d", ret);
+ dev_err(dev, "clk_get failed: %s\n", strerror(-ret));
return ret;
}
@@ -788,7 +788,7 @@ static int ipu_probe(struct device_d *dev)
ret = devtype->reset(ipu);
if (ret) {
- dev_err(dev, "failed to reset: %d\n", ret);
+ dev_err(dev, "failed to reset: %s\n", strerror(-ret));
goto out_failed_reset;
}