[PATCH 05/23] i2c: i.MX: Enable clock
Sascha Hauer
s.hauer at pengutronix.de
Mon Jan 16 02:50:50 PST 2017
For architectures which do not enable all clocks during initialization.
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
drivers/i2c/busses/i2c-imx.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/i2c/busses/i2c-imx.c b/drivers/i2c/busses/i2c-imx.c
index 74f046d00..5677443a1 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);
--
2.11.0
More information about the barebox
mailing list