]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - include/linux/power_supply.h
power: remove possible deadlock when unregistering power_supply
[linux.git] / include / linux / power_supply.h
index b21c4bd96b84f2b78397114efb3062e68dbe59c6..f80769175c56dc9f07a234e950394b30cc891230 100644 (file)
@@ -269,6 +269,7 @@ struct power_supply {
        spinlock_t changed_lock;
        bool changed;
        bool initialized;
+       bool removing;
        atomic_t use_cnt;
 #ifdef CONFIG_THERMAL
        struct thermal_zone_device *tzd;