linux-imx/drivers/cpuidle
Dave Gerlach 611a300c2d cpuidle: Indicate when a device has been unregistered
commit c998c07836 upstream.

Currently the 'registered' member of the cpuidle_device struct is set
to 1 during cpuidle_register_device. In this same function there are
checks to see if the device is already registered to prevent duplicate
calls to register the device, but this value is never set to 0 even on
unregister of the device. Because of this, any attempt to call
cpuidle_register_device after a call to cpuidle_unregister_device will
fail which shouldn't be the case.

To prevent this, set registered to 0 when the device is unregistered.

Fixes: c878a52d3c (cpuidle: Check if device is already registered)
Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
2016-06-15 09:32:12 +02:00
..
governors cpuidle / menu: Return (-1) if there are no suitable states 2015-07-30 14:10:49 +02:00
coupled.c cpuidle: coupled: fix race condition between pokes and safe state 2013-08-29 22:15:34 +02:00
cpuidle-big_little.c cpuidle: big.LITTLE: vexpress-TC2 CPU idle driver 2013-08-28 11:28:51 -07:00
cpuidle-calxeda.c cpuidle: calxeda: Add missing __iomem annotation 2013-08-12 11:28:29 +02:00
cpuidle-kirkwood.c cpuidle-kirkwood.c: simplify use of devm_ioremap_resource() 2013-08-14 22:20:06 +02:00
cpuidle-ux500.c ARM: ux500: cpuidle: fix section mismatch 2015-10-28 16:38:38 +01:00
cpuidle-zynq.c ARM: zynq: Add cpuidle support 2013-06-05 14:04:26 +02:00
cpuidle.c cpuidle: Indicate when a device has been unregistered 2016-06-15 09:32:12 +02:00
cpuidle.h cpuidle: support multiple drivers 2012-11-15 00:34:23 +01:00
driver.c cpuidle: Check the result of cpuidle_get_driver() against NULL 2013-08-30 21:53:41 +02:00
governor.c cpuidle: create bootparam "cpuidle.off=1" 2011-08-03 19:06:36 -04:00
Kconfig cpuidle: big.LITTLE: vexpress-TC2 CPU idle driver 2013-08-28 11:28:51 -07:00
Kconfig.arm ARM: SoC drivers for v3.12 2013-09-09 16:08:13 -07:00
Makefile ARM: SoC drivers for v3.12 2013-09-09 16:08:13 -07:00
sysfs.c cpuidle: Make cpuidle's sysfs directory dynamically allocated 2013-07-15 02:09:47 +02:00