diff options
author | Ulf Hansson <ulf.hansson@linaro.org> | 2016-10-17 20:17:00 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2016-10-21 15:42:11 +0200 |
commit | b1a60995a684f2b6052cda640b0704361ab40089 (patch) | |
tree | 7f39f060f511b1a8cb1ec9a4fa49aa038b3386d7 /drivers/net/ethernet/smsc | |
parent | PM / Runtime: Clarify comment in rpm_resume() when resuming the parent (diff) | |
download | linux-b1a60995a684f2b6052cda640b0704361ab40089.tar.xz linux-b1a60995a684f2b6052cda640b0704361ab40089.zip |
PM / Runtime: Convert pm_runtime_set_suspended() to return an int
Because pm_runtime_set_suspended() invokes __pm_runtime_set_status(), which
can fail, pm_runtime_set_suspended() can also fail.
Instead of hiding a potential error, let's propagate it by converting
pm_runtime_set_suspended() from a void to return an int. In this way users
are able to check the error code and act accordingly.
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>
Diffstat (limited to 'drivers/net/ethernet/smsc')
0 files changed, 0 insertions, 0 deletions