From: Alan Stern Date: Fri, 5 Dec 2008 19:10:31 +0000 (-0500) Subject: Driver core: move the bus notifier call points X-Git-Tag: v2.6.29-rc1~229^2~42 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec0676ee28528dc8dda13a93ee4b1f215a0c2f9d;p=pandora-kernel.git 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 Cc: Kay Sievers Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed