Skip to content

Commit

Permalink
mfd: Fix tps65090 ifdefs for suspend mode
Browse files Browse the repository at this point in the history
CONFIG_PM also covers runtime only PM.

Signed-off-by: Mark Brown <[email protected]>
Acked-by: Venu Byravarasu <[email protected]>
Signed-off-by: Samuel Ortiz <[email protected]>
  • Loading branch information
broonie authored and Samuel Ortiz committed May 7, 2012
1 parent 6ef9418 commit 1ca5513
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/mfd/tps65090.c
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ static int __devexit tps65090_i2c_remove(struct i2c_client *client)
return 0;
}

#ifdef CONFIG_PM
#ifdef CONFIG_PM_SLEEP
static int tps65090_i2c_suspend(struct i2c_client *client, pm_message_t state)
{
if (client->irq)
Expand Down Expand Up @@ -363,7 +363,7 @@ static struct i2c_driver tps65090_driver = {
},
.probe = tps65090_i2c_probe,
.remove = __devexit_p(tps65090_i2c_remove),
#ifdef CONFIG_PM
#ifdef CONFIG_PM_SLEEP
.suspend = tps65090_i2c_suspend,
.resume = tps65090_i2c_resume,
#endif
Expand Down

0 comments on commit 1ca5513

Please sign in to comment.