Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+2 -2
+2 -2
drivers/pci/pci-sysfs.c
··· 1517 1517 return count; 1518 1518 } 1519 1519 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)) 1522 1522 return -ENXIO; 1523 1523 1524 1524 if (sysfs_streq(buf, "default")) {