]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/base/power/main.c
PM: Remove unbalanced mutex_unlock() from dpm_resume()
[linux-2.6-omap-h63xx.git] / drivers / base / power / main.c
index 200ed5fafd505ad0e18fff1131500e2a2fd4ba9c..cea5ed3919cdca54f88e0d5d16d36ac5e3ef02a4 100644 (file)
@@ -129,6 +129,7 @@ void device_pm_schedule_removal(struct device *dev)
        list_move_tail(&dev->power.entry, &dpm_destroy);
        mutex_unlock(&dpm_list_mtx);
 }
+EXPORT_SYMBOL_GPL(device_pm_schedule_removal);
 
 /**
  *     pm_sleep_lock - mutual exclusion for registration and suspend
@@ -478,7 +479,6 @@ static int dpm_suspend(pm_message_t state)
                        mutex_lock(&dpm_list_mtx);
                        if (list_empty(&dev->power.entry))
                                list_add(&dev->power.entry, &dpm_locked);
-                       mutex_unlock(&dpm_list_mtx);
                        break;
                }
                mutex_lock(&dpm_list_mtx);
@@ -522,6 +522,7 @@ static void lock_all_devices(void)
 
 /**
  *     device_suspend - Save state and stop all devices in system.
+ *     @state: new power management state
  *
  *     Prevent new devices from being registered, then lock all devices
  *     and suspend them.