cpufreq: cpu0: drop wrong devm usage
authorLucas Stach <l.stach@pengutronix.de>
Fri, 16 May 2014 10:20:42 +0000 (12:20 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 19 May 2014 23:29:20 +0000 (01:29 +0200)
commite3beb0ac521d50d158a9d253373eae8421ac3998
treedb09042de3e8135eb95042410b79ca70f89de8be
parentc5450db85b828d0c46ac8fc570fb8a51bf07ac40
cpufreq: cpu0: drop wrong devm usage

This driver is using devres managed calls incorrectly, giving the cpu0
device as first parameter instead of the cpufreq platform device.
This results in resources not being freed if the cpufreq platform device
is unbound, for example if probing has to be deferred for a missing
regulator.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Cc: 3.9+ <stable@vger.kernel.org> # 3.9+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/cpufreq-cpu0.c