OPP: Return error on error from dev_pm_opp_get_opp_count()
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 3 Oct 2018 09:52:03 +0000 (15:22 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 24 Nov 2019 07:20:06 +0000 (08:20 +0100)
commit216929d15b2c655d960d72b6e76e1c744870a729
tree77f4b25adb7d4875f76ad1aad78e471372e633a9
parent3d0c72f99efcbe7645c6490e81a4dc0acf53adcb
OPP: Return error on error from dev_pm_opp_get_opp_count()

[ Upstream commit 09f662f95306f3e3d47ab6842bc4b0bb868a80ad ]

Return error number instead of 0 on failures.

Fixes: a1e8c13600bf ("PM / OPP: "opp-hz" is optional for power domains")
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/opp/core.c