i2c: imx: enable clk before write to registers
authorJingchang Lu <b35083@freescale.com>
Wed, 7 Aug 2013 09:05:37 +0000 (17:05 +0800)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 15 Aug 2013 14:11:41 +0000 (16:11 +0200)
commit46f2832b9f66b008fb813fe153f27794412fbc4f
tree02d4ff2b6d55bc720ac041223ae5171736d91ac0
parentd533f0492b6371025a4f88506c7f1828a7a48e81
i2c: imx: enable clk before write to registers

The module clk should be enabled before write to
its register in probe(), and the clk can be disabled
after.

Signed-off-by: Jingchang Lu <b35083@freescale.com>
Reviewed-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-imx.c