]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
Driver core: Fix device_move() vs. dpm list ordering, v2
authorCornelia Huck <cornelia.huck@de.ibm.com>
Wed, 4 Mar 2009 11:44:00 +0000 (12:44 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 24 Mar 2009 23:38:26 +0000 (16:38 -0700)
commitffa6a7054d172a2f57248dff2de600ca795c5656
treef93c6234bb90295c52fcef09e367ed77ff6c3645
parent60530afe1ee8a5532cb09d0ab5bc3f1a6495b780
Driver core: Fix device_move() vs. dpm list ordering, v2

dpm_list currently relies on the fact that child devices will
be registered after their parents to get a correct suspend
order. Using device_move() however destroys this assumption, as
an already registered device may be moved under a newly registered
one.

This patch adds a new argument to device_move(), allowing callers
to specify how dpm_list should be adapted.

Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/core.c
drivers/base/power/main.c
drivers/base/power/power.h
drivers/s390/cio/device.c
include/linux/device.h
include/linux/pm.h
net/bluetooth/hci_sysfs.c
net/bluetooth/rfcomm/tty.c