Commit 945c7c6d authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Tzung-Bi Shih
Browse files

platform/chrome: cros_hps_i2c: Replace deprecated UNIVERSAL_DEV_PM_OPS()

parent 62bbe555
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -126,7 +126,7 @@ static int hps_resume(struct device *dev)
	hps_set_power(hps, true);
	return 0;
}
static UNIVERSAL_DEV_PM_OPS(hps_pm_ops, hps_suspend, hps_resume, NULL);
static DEFINE_RUNTIME_DEV_PM_OPS(hps_pm_ops, hps_suspend, hps_resume, NULL);

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