]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
PM: runtime: Drop DEFINE_FREE() for pm_runtime_put()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 26 Sep 2025 16:26:40 +0000 (18:26 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 29 Sep 2025 15:01:54 +0000 (17:01 +0200)
The DEFINE_FREE() for pm_runtime_put has been superseded by recently
introduced runtime PM auto-cleanup macros and its only user has been
converted to using one of the new macros, so drop it.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Dhruva Gole <d-gole@ti.com>
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
include/linux/pm_runtime.h

index e5426bdd0c9fc044d372bf21d43dc93074b81293..edb8aed5ef62eb7f385d00c54b792566482a24e9 100644 (file)
@@ -563,8 +563,6 @@ static inline int pm_runtime_put(struct device *dev)
        return __pm_runtime_idle(dev, RPM_GET_PUT | RPM_ASYNC);
 }
 
-DEFINE_FREE(pm_runtime_put, struct device *, if (_T) pm_runtime_put(_T))
-
 /**
  * __pm_runtime_put_autosuspend - Drop device usage counter and queue autosuspend if 0.
  * @dev: Target device.