Commit e2a4e46f authored by Tang Bin's avatar Tang Bin Committed by Greg Kroah-Hartman
Browse files

opp: Fix error check in dev_pm_opp_attach_genpd()



[ Upstream commit 4ea9496c ]

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

Fixes: 6319aee1 ("opp: Attach genpds to devices from within OPP core")
Signed-off-by: default avatarTang Bin <tangbin@cmss.chinamobile.com>
[ Viresh: Replace ENODATA with ENODEV ]
Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 3b973703
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment