cpufreq: qoriq: Fix cooling device registration issue during suspend
authorJia Hongtao <hongtao.jia@nxp.com>
Tue, 19 Apr 2016 09:00:07 +0000 (17:00 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 25 Apr 2016 14:07:02 +0000 (16:07 +0200)
commit394cb8316b44e86f64c39ee943bc9bc4f813283b
tree23743b9f6401bdc110e722ce0a5dfc12e323b46a
parent495c716f177ed8fb3eb6334e4d08c409a9a0bd0f
cpufreq: qoriq: Fix cooling device registration issue during suspend

Cooling device is registered by ready callback. It's also invoked while
system resuming from sleep (Enabling non-boot cpus). Thus cooling device
may be multiple registered. Matchable unregistration is added to exit
callback to fix this issue.

Signed-off-by: Jia Hongtao <hongtao.jia@nxp.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/qoriq-cpufreq.c