diff options
Diffstat (limited to 'drivers/power/bq20z75.c')
-rw-r--r-- | drivers/power/bq20z75.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/drivers/power/bq20z75.c b/drivers/power/bq20z75.c index 9c5e5beda3a8..e231dd8bbeb0 100644 --- a/drivers/power/bq20z75.c +++ b/drivers/power/bq20z75.c @@ -755,11 +755,18 @@ static int bq20z75_suspend(struct i2c_client *client, return 0; } + +static int bq20z75_resume(struct i2c_client *client) +{ + struct bq20z75_info *bq20z75_device = i2c_get_clientdata(client); + + schedule_delayed_work(&bq20z75_device->work, HZ); + return 0; +} #else #define bq20z75_suspend NULL -#endif -/* any smbus transaction will wake up bq20z75 */ #define bq20z75_resume NULL +#endif static const struct i2c_device_id bq20z75_id[] = { { "bq20z75", 0 }, |