linux-stable/drivers/opp
Tang Bin 13741bb88a opp: Fix error check in dev_pm_opp_attach_genpd()
[ Upstream commit 4ea9496cbc ]

dev_pm_domain_attach_by_name() may return NULL in some cases,
so IS_ERR() doesn't meet the requirements. Thus fix it.

Fixes: 6319aee10e ("opp: Attach genpds to devices from within OPP core")
Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
[ Viresh: Replace ENODATA with ENODEV ]
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-08-17 14:24:01 +02:00
..
core.c opp: Fix error check in dev_pm_opp_attach_genpd() 2022-08-17 14:24:01 +02:00
cpu.c opp: Remove _dev_pm_opp_find_and_remove_table() wrapper 2020-08-24 17:04:37 +05:30
debugfs.c opp: Expose of-node's name in debugfs 2022-04-13 20:59:11 +02:00
Kconfig
Makefile
of.c OPP: call of_node_put() on error path in _bandwidth_supported() 2022-06-09 10:23:13 +02:00
opp.h opp: Expose of-node's name in debugfs 2022-04-13 20:59:11 +02:00
ti-opp-supply.c