summaryrefslogtreecommitdiffstats
path: root/drivers/serial
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2017-06-14 00:01:29 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2017-06-19 08:20:51 +0200
commit211a5b23d9fb31930d0a2cd6a4407ede71d481b2 (patch)
tree1ab968188ca925c0e4147fc5e4875944cbd627d6 /drivers/serial
parenta4c5612641338abba9ebf35f3655bcfff11cb05d (diff)
downloadbarebox-211a5b23d9fb31930d0a2cd6a4407ede71d481b2.tar.gz
serial: ns16550: emit an error message if getting the clock fails
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/serial')
-rw-r--r--drivers/serial/serial_ns16550.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/serial/serial_ns16550.c b/drivers/serial/serial_ns16550.c
index 439b7d5..a8953cd 100644
--- a/drivers/serial/serial_ns16550.c
+++ b/drivers/serial/serial_ns16550.c
@@ -445,6 +445,7 @@ static int ns16550_probe(struct device_d *dev)
priv->clk = clk_get(dev, NULL);
if (IS_ERR(priv->clk)) {
ret = PTR_ERR(priv->clk);
+ dev_err(dev, "failed to get clk (%d)\n", ret);
goto err;
}
clk_enable(priv->clk);