Files
linux/drivers
YueHaibing 5a893e0eab opp: Fix return in _opp_add_static_v2()
[ Upstream commit 27ff8187f1 ]

Fix sparse warning:
drivers/opp/of.c:924 _opp_add_static_v2() warn: passing zero to 'ERR_PTR'

For duplicate OPPs 'ret' be set to zero.

Fixes: deac8703da ("PM / OPP: _of_add_opp_table_v2(): increment count only if OPP is added")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-11-17 09:48:44 +01:00
..
2021-11-17 09:48:23 +01:00
2021-07-14 16:53:42 +02:00
2021-10-20 11:40:15 +02:00
2021-11-17 09:48:20 +01:00
2021-09-26 14:07:14 +02:00