Skip to content

Commit 945c7c6

Browse files
andy-shevTzung-Bi Shih
authored andcommitted
platform/chrome: cros_hps_i2c: Replace deprecated UNIVERSAL_DEV_PM_OPS()
The UNIVERSAL_DEV_PM_OPS() macro is deprecated. Replace it. Signed-off-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Tzung-Bi Shih <[email protected]>
1 parent 62bbe55 commit 945c7c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/platform/chrome/cros_hps_i2c.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ static int hps_resume(struct device *dev)
126126
hps_set_power(hps, true);
127127
return 0;
128128
}
129-
static UNIVERSAL_DEV_PM_OPS(hps_pm_ops, hps_suspend, hps_resume, NULL);
129+
static DEFINE_RUNTIME_DEV_PM_OPS(hps_pm_ops, hps_suspend, hps_resume, NULL);
130130

131131
static const struct i2c_device_id hps_i2c_id[] = {
132132
{ "cros-hps", 0 },
@@ -148,7 +148,7 @@ static struct i2c_driver hps_i2c_driver = {
148148
.id_table = hps_i2c_id,
149149
.driver = {
150150
.name = "cros-hps",
151-
.pm = &hps_pm_ops,
151+
.pm = pm_ptr(&hps_pm_ops),
152152
.acpi_match_table = ACPI_PTR(hps_acpi_id),
153153
},
154154
};

0 commit comments

Comments
 (0)