]> git.baikalelectronics.ru Git - kernel.git/commit
Driver core: fix class glue dir cleanup logic
authorKay Sievers <kay.sievers@vrfy.org>
Wed, 21 Nov 2007 16:29:15 +0000 (17:29 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 25 Jan 2008 04:40:36 +0000 (20:40 -0800)
commit7de241240dd88c7db30645d46adc0387ef1d8142
treefbaa6dfe56d544af0edc3e01633006515c2e582d
parentae1da4cadad8beeef83dbf66a15da27470b85fbb
Driver core: fix class glue dir cleanup logic

We should remove the glue directory between the class and the bus
device _after_ we sent out the 'remove' event for the device, otherwise
the parent relationship is no longer valid, and composing the path
with deleted sysfs entries will not work.

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