Skip to content

Commit

Permalink
i2c: pnx: Disable clk in suspend
Browse files Browse the repository at this point in the history
commit 6c557cf upstream.

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>
[wsa: reworded commit header slightly]
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Roland Stigge authored and Greg Kroah-Hartman committed May 7, 2012
1 parent 9051b1e commit b476e58
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 b476e58

Please sign in to comment.