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
debugfs.c
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
ti-opp-supply.c