]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ACPI: PM: sleep: Do not set suspend_ops unnecessarily
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 20 Oct 2021 19:10:17 +0000 (21:10 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 26 Oct 2021 13:31:46 +0000 (15:31 +0200)
commitd69d1f708093347c085699cc0b547982e48c47b8
treeb823fecc38dbb7c110e33c976610efd5352b054b
parenta9a8f827f9e81dc8506d3283d166cd6efe822302
ACPI: PM: sleep: Do not set suspend_ops unnecessarily

If none of the S1 - S3 sleep states is supported, it is not necessary
to register suspend_ops, so don't do that then.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/sleep.c