PM / OPP: do error handling at the bottom of dev_pm_opp_add_dynamic()
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 10 Dec 2014 04:15:35 +0000 (09:45 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 10 Dec 2014 21:18:34 +0000 (22:18 +0100)
commit6ce4184d0308888dd6ac2b6ab5f8ec0b2006092e
tree986a1cb3efce104afd0cc80d9a1c151a3e6a7845
parent07cce74a7b259cb90029530e9549bf1d9a1b1c34
PM / OPP: do error handling at the bottom of dev_pm_opp_add_dynamic()

This makes it less error prone and moves common resource deallocation at a
single place.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/opp.c