summaryrefslogtreecommitdiff
path: root/drivers/cpuidle
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-04-26 02:30:00 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-04-26 02:30:00 +0200
commitf0fb0dd0a715bd29caf9c55cf4a2a52a14a8fd61 (patch)
tree9d07add8ec942292ad205c4836bb3eb3cdf69051 /drivers/cpuidle
parentb5ebbcdb53260991a82a8800480dcb06dcffeef9 (diff)
parent5dcef694860100fd16885f052591b1268b764d21 (diff)
Merge back earlier cpuidle changes for v4.7.
Diffstat (limited to 'drivers/cpuidle')
-rw-r--r--drivers/cpuidle/cpuidle.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/cpuidle/cpuidle.c b/drivers/cpuidle/cpuidle.c
index f996efc56605..c2dd99ab1648 100644
--- a/drivers/cpuidle/cpuidle.c
+++ b/drivers/cpuidle/cpuidle.c
@@ -433,6 +433,8 @@ static void __cpuidle_unregister_device(struct cpuidle_device *dev)
list_del(&dev->device_list);
per_cpu(cpuidle_devices, dev->cpu) = NULL;
module_put(drv->owner);
+
+ dev->registered = 0;
}
static void __cpuidle_device_init(struct cpuidle_device *dev)