PM / Runtime: Remove the exported function pm_children_suspended()
authorUlf Hansson <ulf.hansson@linaro.org>
Mon, 17 Oct 2016 18:16:58 +0000 (20:16 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 21 Oct 2016 13:42:10 +0000 (15:42 +0200)
commit62006c1702b3b1be0c0726949e0ee0ea2326be9c
tree7adc161e3450624f9b106514e42b676f49a2b6b1
parent1001354ca34179f3db924eb66672442a173147dc
PM / Runtime: Remove the exported function pm_children_suspended()

The exported function pm_children_suspended() has only one caller, which is
the runtime PM internal function, rpm_check_suspend_allowed().

Let's clean-up this code, by removing pm_children_suspended() altogether
and instead do the one-liner check directly in rpm_check_suspend_allowed().

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/runtime.c
include/linux/pm_runtime.h