mfd: wm8994: Don't use system PM operations
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / mfd / wm8994-core.c
index 97e929e76810eca22f5ed56d60a03b3acb456d52..cdea84e727e57f16bd7cc9e847622c24c8700383 100644 (file)
@@ -191,7 +191,7 @@ static const char *wm8958_main_supplies[] = {
        "SPKVDD2",
 };
 
-#ifdef CONFIG_PM
+#ifdef CONFIG_PM_RUNTIME
 static int wm8994_suspend(struct device *dev)
 {
        struct wm8994 *wm8994 = dev_get_drvdata(dev);
@@ -724,8 +724,9 @@ static const struct i2c_device_id wm8994_i2c_id[] = {
 };
 MODULE_DEVICE_TABLE(i2c, wm8994_i2c_id);
 
-static UNIVERSAL_DEV_PM_OPS(wm8994_pm_ops, wm8994_suspend, wm8994_resume,
-                           NULL);
+static const struct dev_pm_ops wm8994_pm_ops = {
+       SET_RUNTIME_PM_OPS(wm8994_suspend, wm8994_resume, NULL)
+};
 
 static struct i2c_driver wm8994_i2c_driver = {
        .driver = {