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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Jul 2022 14:35:09 +0000 (16:35 +0200)
commit79827e53b069276785ed32f34915b7c76055e42c
tree3b14129af326447e552f166f909b073a6ce6ea00
parent9c9e44bb3dd5233232f2379c2dde0e403b1fd642
PM: runtime: Redefine pm_runtime_release_supplier()

commit 07358194badf73e267289b40b761f5dc56928eab upstream.

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+
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/core.c
drivers/base/power/runtime.c
include/linux/pm_runtime.h