9
0
Fork 0

serial: ns16550: enable clock if available

Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Lucas Stach 2014-11-03 23:52:21 +01:00 committed by Sascha Hauer
parent d086b3298b
commit 2c779cbe97
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}