]> err.no Git - linux-2.6/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)
commitda231fd5d113ab6da5dab7a2d2c38d0a540f939c
treefbaa6dfe56d544af0edc3e01633006515c2e582d
parentef2c51746dc89c2326ce522f8fb8a57695780e75
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