]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: s3c2410: Move location of clk_prepare_enable() call in probe function
authorTushar Behera <tushar.behera@linaro.org>
Thu, 24 Jan 2013 10:11:08 +0000 (15:41 +0530)
committerWolfram Sang <w.sang@pengutronix.de>
Mon, 28 Jan 2013 04:26:44 +0000 (05:26 +0100)
commitbfabc84b12216d8af3654e8f077ade87e3dbcdd7
tree0f66a465cd863d8acff40ae56dc3eb2ed102ec46
parenta905bec904afabdefeba0b69fe613814c47fcf91
i2c: s3c2410: Move location of clk_prepare_enable() call in probe function

In i2c-s3c2410 driver probe, only s3c24xx_i2c_init() needs the I2C clock
to be enabled. Moving clk_prepare_enable() and clk_disable_unprepare()
calls to around this function simplifies the return path of probe call.

Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
drivers/i2c/busses/i2c-s3c2410.c