PM: runtime: Redefine pm_runtime_release_supplier()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 27 Jun 2022 18:42:18 +0000 (20:42 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 1 Jul 2022 19:04:02 +0000 (21:04 +0200)
commit07358194badf73e267289b40b761f5dc56928eab
tree093f6d495a02bf16c471eb17ac36dd7a2da77ee9
parent03c765b0e3b4cb5063276b086c76f7a612856a9a
PM: runtime: Redefine pm_runtime_release_supplier()

Instead of passing an extra bool argument to pm_runtime_release_supplier(),
make its callers take care of triggering a runtime-suspend of the
supplier device as needed.

No expected functional impact.

Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: 5.1+ <stable@vger.kernel.org> # 5.1+
drivers/base/core.c
drivers/base/power/runtime.c
include/linux/pm_runtime.h