summaryrefslogtreecommitdiffstats
path: root/drivers/bus/uniphier-system-bus.c
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2018-10-03 16:38:14 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2018-10-18 12:25:09 +0200
commit2c361684803e0129007806b1ce42cbf9c52f8cd0 (patch)
tree11e374e382ed046dc30cd4c6f679f5aa8cbabe81 /drivers/bus/uniphier-system-bus.c
parent35a7f35ad1b150ddf59a41dcac7b2fa32982be0e (diff)
downloadlinux-2c361684803e0129007806b1ce42cbf9c52f8cd0.tar.bz2
PM / Domains: Don't treat zero found compatible idle states as an error
Instead of returning -EINVAL from of_genpd_parse_idle_states() in case none compatible states was found, let's return 0 to indicate success. Assign also the out-parameter *states to NULL and *n to 0, to indicate to the caller that zero states have been found/allocated. This enables the caller of of_genpd_parse_idle_states() to easier act on the returned error code. Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Reviewed-by: Lina Iyer <ilina@codeaurora.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/bus/uniphier-system-bus.c')
0 files changed, 0 insertions, 0 deletions