Commit 4ea9496c authored by Tang Bin's avatar Tang Bin Committed by Viresh Kumar
Browse files

opp: Fix error check in dev_pm_opp_attach_genpd()

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>
parent f2906aa8
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment