[PATCH v2] i2c-pxa: prepare clock before use

2013-06-17 Thread Daniel Drake
On OLPC XO-1.75 (MMP2), a WARN_ON() was occurring during boot since the clock being enabled by i2c-pxa had not been prepared. Use clk_prepare_enable() to ensure that the prepare operation has taken place, and use clk_disable_unprepare() in the matching shutdown paths. Signed-off-by: Daniel Drake

[PATCH] i2c-pxa: prepare clock before use

2013-06-13 Thread Daniel Drake
On OLPC XO-1.75 (MMP2), a WARN_ON() was occurring during boot since the clock being enabled by i2c-pxa had not been prepared. Use clk_prepare_enable() to ensure that the prepare operation has taken place. Signed-off-by: Daniel Drake --- drivers/i2c/busses/i2c-pxa.c | 2 +- 1 file changed, 1