summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLucas Stach <dev@lynxeye.de>2014-11-03 23:52:21 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2014-11-04 12:16:52 +0100
commit2c779cbe9700c4a70d2f846127390b217e75146e (patch)
treec061af097c91b5d56372e4bb7a473112f02c1fc9
parentd086b3298b9bb0da9b8aa9f0f5850dc46f4ea3c8 (diff)
downloadbarebox-2c779cbe9700c4a70d2f846127390b217e75146e.tar.gz
serial: ns16550: enable clock if available
Signed-off-by: Lucas Stach <dev@lynxeye.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-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 4ca7444..f281f3f 100644
--- a/drivers/serial/serial_ns16550.c
+++ b/drivers/serial/serial_ns16550.c
@@ -418,6 +418,7 @@ static int ns16550_probe(struct device_d *dev)
ret = PTR_ERR(priv->clk);
goto err;
}
+ clk_enable(priv->clk);
priv->plat.clock = clk_get_rate(priv->clk);
}