diff options
Diffstat (limited to 'drivers/mfd/wm8994-core.c')
-rw-r--r-- | drivers/mfd/wm8994-core.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/mfd/wm8994-core.c b/drivers/mfd/wm8994-core.c index 97e929e76810..cdea84e727e5 100644 --- a/drivers/mfd/wm8994-core.c +++ b/drivers/mfd/wm8994-core.c | |||
@@ -191,7 +191,7 @@ static const char *wm8958_main_supplies[] = { | |||
191 | "SPKVDD2", | 191 | "SPKVDD2", |
192 | }; | 192 | }; |
193 | 193 | ||
194 | #ifdef CONFIG_PM | 194 | #ifdef CONFIG_PM_RUNTIME |
195 | static int wm8994_suspend(struct device *dev) | 195 | static int wm8994_suspend(struct device *dev) |
196 | { | 196 | { |
197 | struct wm8994 *wm8994 = dev_get_drvdata(dev); | 197 | struct wm8994 *wm8994 = dev_get_drvdata(dev); |
@@ -724,8 +724,9 @@ static const struct i2c_device_id wm8994_i2c_id[] = { | |||
724 | }; | 724 | }; |
725 | MODULE_DEVICE_TABLE(i2c, wm8994_i2c_id); | 725 | MODULE_DEVICE_TABLE(i2c, wm8994_i2c_id); |
726 | 726 | ||
727 | static UNIVERSAL_DEV_PM_OPS(wm8994_pm_ops, wm8994_suspend, wm8994_resume, | 727 | static const struct dev_pm_ops wm8994_pm_ops = { |
728 | NULL); | 728 | SET_RUNTIME_PM_OPS(wm8994_suspend, wm8994_resume, NULL) |
729 | }; | ||
729 | 730 | ||
730 | static struct i2c_driver wm8994_i2c_driver = { | 731 | static struct i2c_driver wm8994_i2c_driver = { |
731 | .driver = { | 732 | .driver = { |