summaryrefslogtreecommitdiff
path: root/drivers/opp/ti-opp-supply.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/opp/ti-opp-supply.c')
-rw-r--r--drivers/opp/ti-opp-supply.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/opp/ti-opp-supply.c b/drivers/opp/ti-opp-supply.c
index bd4771f388ab..40ebc9ac82dd 100644
--- a/drivers/opp/ti-opp-supply.c
+++ b/drivers/opp/ti-opp-supply.c
@@ -405,9 +405,9 @@ static int ti_opp_supply_probe(struct platform_device *pdev)
return ret;
}
- ret = PTR_ERR_OR_ZERO(dev_pm_opp_register_set_opp_helper(cpu_dev,
- ti_opp_supply_set_opp));
- if (ret)
+ ret = dev_pm_opp_register_set_opp_helper(cpu_dev,
+ ti_opp_supply_set_opp);
+ if (ret < 0)
_free_optimized_voltages(dev, &opp_data);
return ret;