summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2017-01-12 09:51:02 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2017-01-19 15:16:15 +0100
commit27940deb9a877da0fc26718344ffa8e1dfb47023 (patch)
treeadc4cadb8204afbf4fb1a1fa8c2a503994bbfca8
parent14ff9d5823f938b29a6cb2cc6f367ff7ee807bac (diff)
downloadbarebox-27940deb9a877da0fc26718344ffa8e1dfb47023.tar.gz
barebox-27940deb9a877da0fc26718344ffa8e1dfb47023.tar.xz
i2c: i.MX: Enable clock
For architectures which do not enable all clocks during initialization. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--drivers/i2c/busses/i2c-imx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/i2c/busses/i2c-imx.c b/drivers/i2c/busses/i2c-imx.c
index 74f046d00c..5677443a16 100644
--- a/drivers/i2c/busses/i2c-imx.c
+++ b/drivers/i2c/busses/i2c-imx.c
@@ -673,6 +673,7 @@ static int __init i2c_fsl_probe(struct device_d *pdev)
ret = PTR_ERR(i2c_fsl->clk);
goto fail;
}
+ clk_enable(i2c_fsl->clk);
#endif
i2c_fsl->hwdata = of_device_get_match_data(pdev);