cpufreq: mvebu: Free opp if registering failed
authorGregory CLEMENT <gregory.clement@free-electrons.com>
Wed, 13 Dec 2017 17:29:14 +0000 (18:29 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 16 Dec 2017 01:29:43 +0000 (02:29 +0100)
commit3f4590a4a371006f66385eb5b739d5d01249ee3f
tree06cbbb011baea23717e7db4dd043b99df8d59654
parentb3371600926638842c460d652599c4dddef72da6
cpufreq: mvebu: Free opp if registering failed

Since the introduction of this driver, the functions to remove the opp
were added. So stop claiming we can't remove opp and use one of them in
case of failure.

Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/mvebu-cpufreq.c