[openEuler-5.10 336/496] opp: Fix error check in dev_pm_opp_attach_genpd()