Driver core: Don't remove kobjects in device_shutdown.
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 4 Nov 2009 10:50:28 +0000 (02:50 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Dec 2009 19:24:52 +0000 (11:24 -0800)
commit18ef545e47c126abd87c013b762b5fbb574858ce
treef401af6e65f441898e4832878895a182b81a33c4
parent9ebfbd45f9d4ee9cd72529cf99e5f300eb398e67
Driver core: Don't remove kobjects in device_shutdown.

device_shutdown is defined to just shutdown the hardware and to not
clean up any kernel data structures.  Therefore don't put the kobjects
for /sys/dev and /sys/dev/block and /sys/dev/char.

This ensures we don't remove /sys/dev/block and /sys/dev/char while
we still have symlinks from there to the actual devices.

Acked-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Eric W. Biederman <ebiederm@aristanetworks.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/core.c