linux-stable/drivers/opp
Tang Bin 426ac3e292 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 15:15:43 +02:00
..
Kconfig treewide: replace '---help---' in Kconfig files with 'help' 2020-06-14 01:57:21 +09:00
Makefile
core.c opp: Fix error check in dev_pm_opp_attach_genpd() 2022-08-17 15:15:43 +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: use list iterator only inside the loop 2022-04-11 08:31:43 +05:30
of.c PM: EM: convert power field to micro-Watts precision and align drivers 2022-08-17 15:14:05 +02:00
opp.h opp: Expose of-node's name in debugfs 2022-02-11 09:59:04 +05:30
ti-opp-supply.c opp: ti-opp-supply: Replace HTTP links with HTTPS ones 2020-07-24 08:05:54 +05:30