[openEuler-5.10-LTS 341/501] opp: Fix error check in dev_pm_opp_attach_genpd()