-
由 Tang Bin 提交于
stable inclusion from stable-v5.10.137 commit e2a4e46f52584e43cd0d9866752b51f588cc1173 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I60PLB Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=e2a4e46f52584e43cd0d9866752b51f588cc1173 -------------------------------- [ 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: NTang Bin <tangbin@cmss.chinamobile.com> [ Viresh: Replace ENODATA with ENODEV ] Signed-off-by: NViresh Kumar <viresh.kumar@linaro.org> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com> Reviewed-by: NWei Li <liwei391@huawei.com>
afddcca6