]> Gentwo Git Trees - linux/.git/commit
PCI/sysfs: Use runtime PM guard macro for auto-cleanup
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 26 Sep 2025 16:24:05 +0000 (18:24 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 29 Sep 2025 15:01:47 +0000 (17:01 +0200)
commit8ff5aaa7b8c9fb3e66df6f440ee109d00f8d7a1b
tree7d31fb8d5c2fd029095a8f1954742a705556fdc2
parent9a0abc39450a3123fd52533a662fbd37e0d1508c
PCI/sysfs: Use runtime PM guard macro for auto-cleanup

Use the newly introduced pm_runtime_active_try guard to simplify
the code and add the proper error handling for PM runtime resume
errors.

Based on an earlier patch from Takashi Iwai <tiwai@suse.de> [1].

Link: https://patch.msgid.link/20250919163147.4743-3-tiwai@suse.de
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
drivers/pci/pci-sysfs.c