Skip to content

Commit

Permalink
i2c: pnx: Disable clk in suspend
Browse files Browse the repository at this point in the history
In the driver's suspend function, clk_enable() was used instead of
clk_disable(). This is corrected with this patch.

Signed-off-by: Roland Stigge <stigge@antcom.de>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
CC: stable@vger.kernel.org

[wsa: reworded commit header slightly]

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
  • Loading branch information
Roland Stigge authored and Wolfram Sang committed Apr 22, 2012
1 parent 66f75a5 commit 6c557cf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/i2c/busses/i2c-pnx.c
Original file line number Diff line number Diff line change
Expand Up @@ -546,8 +546,7 @@ static int i2c_pnx_controller_suspend(struct platform_device *pdev,
{
struct i2c_pnx_algo_data *alg_data = platform_get_drvdata(pdev);

/* FIXME: shouldn't this be clk_disable? */
clk_enable(alg_data->clk);
clk_disable(alg_data->clk);

return 0;
}
Expand Down

0 comments on commit 6c557cf

Please sign in to comment.