[PATCH 09/12] serial: ns16550: enable clock if available

Lucas Stach dev at lynxeye.de
Mon Nov 3 14:52:21 PST 2014


Signed-off-by: Lucas Stach <dev at lynxeye.de>
---
 drivers/serial/serial_ns16550.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/serial/serial_ns16550.c b/drivers/serial/serial_ns16550.c
index 53d48a0..07dedf7 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);
 	}
 
-- 
1.9.3




More information about the barebox mailing list