]> err.no Git - linux-2.6/blobdiff - drivers/base/power/resume.c
Pull acpi_os_free into release branch
[linux-2.6] / drivers / base / power / resume.c
index 520679ce53a88c04598599665bccd0251fcceb13..826093ef4c7eb0e83cd0fa5fc8564cf6416144ea 100644 (file)
@@ -53,8 +53,7 @@ void dpm_resume(void)
                struct device * dev = to_device(entry);
 
                get_device(dev);
-               list_del_init(entry);
-               list_add_tail(entry, &dpm_active);
+               list_move_tail(entry, &dpm_active);
 
                up(&dpm_list_sem);
                if (!dev->power.prev_state.event)
@@ -101,8 +100,7 @@ void dpm_power_up(void)
                struct device * dev = to_device(entry);
 
                get_device(dev);
-               list_del_init(entry);
-               list_add_tail(entry, &dpm_active);
+               list_move_tail(entry, &dpm_active);
                resume_device(dev);
                put_device(dev);
        }