cpufreq: cpu0: drop wrong devm usage
authorLucas Stach <l.stach@pengutronix.de>
Fri, 16 May 2014 10:20:42 +0000 (12:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 11 Jun 2014 18:54:09 +0000 (11:54 -0700)
commit834a64fa1283c0d48a1ca76bd45eae527ad9ea2c
tree1ea2d83ebb0fff3c86a1dd3a486a585262affaf7
parent664226187b617d64284db9e8d14f5860c6563a24
cpufreq: cpu0: drop wrong devm usage

commit e3beb0ac521d50d158a9d253373eae8421ac3998 upstream.

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>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/cpufreq/cpufreq-cpu0.c