Skip to content

Commit 07f42f8

Browse files
committed
PCI/sysfs: Use PM_RUNTIME_ACQUIRE()/PM_RUNTIME_ACQUIRE_ERR()
Use new PM_RUNTIME_ACQUIRE() and PM_RUNTIME_ACQUIRE_ERR() wrapper macros to make the code look more straightforward. No intentional functional impact. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Reviewed-by: Dhruva Gole <d-gole@ti.com> Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com> [ rjw; Typo fix in the changelog ] Link: https://patch.msgid.link/3932581.kQq0lBPeGt@rafael.j.wysocki Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 70dcad3 commit 07f42f8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/pci/pci-sysfs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1517,8 +1517,8 @@ static ssize_t reset_method_store(struct device *dev,
15171517
return count;
15181518
}
15191519

1520-
ACQUIRE(pm_runtime_active_try, pm)(dev);
1521-
if (ACQUIRE_ERR(pm_runtime_active_try, &pm))
1520+
PM_RUNTIME_ACQUIRE(dev, pm);
1521+
if (PM_RUNTIME_ACQUIRE_ERR(&pm))
15221522
return -ENXIO;
15231523

15241524
if (sysfs_streq(buf, "default")) {

0 commit comments

Comments
 (0)