Driver core: move the bus notifier call points
commitec0676ee28528dc8dda13a93ee4b1f215a0c2f9d
authorAlan Stern <stern@rowland.harvard.edu>
Fri, 5 Dec 2008 19:10:31 +0000 (5 14:10 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 6 Jan 2009 18:44:33 +0000 (6 10:44 -0800)
treec647b85236a717e83014d74a1890b4f4c76de0c8
parentd0d85ff989222f08dd1fa66321fef5567bbc4a7b
Driver core: move the bus notifier call points

This patch (as1184) changes the location of the notifications in
device_add() and device_del().  Now the BUS_NOTIFY_ADD_DEVICE message
is sent after dpm_sysfs_add(), which is necessary for clients that
want to add attributes to the power/ subdirectory.  The
BUS_NOTIFY_DEL_DEVICE message is correspondingly moved before
dpm_sysfs_remove().

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Cc: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/core.c