Commit d5e58ce1 authored by Rafael J. Wysocki's avatar Rafael J. Wysocki
Browse files

PM: runtime: Drop DEFINE_FREE() for pm_runtime_put()



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: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: default avatarDhruva Gole <d-gole@ti.com>
Reviewed-by: default avatarTakashi Iwai <tiwai@suse.de>
Reviewed-by: default avatarJonathan Cameron <jonathan.cameron@huawei.com>
parent 8ff5aaa7
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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.