aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2009-11-04 05:50:28 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2009-12-11 14:24:52 -0500
commit18ef545e47c126abd87c013b762b5fbb574858ce (patch)
treef401af6e65f441898e4832878895a182b81a33c4 /drivers/base
parent9ebfbd45f9d4ee9cd72529cf99e5f300eb398e67 (diff)
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>
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/core.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/base/core.c b/drivers/base/core.c
index 0d3c29d7221..353b1378216 100644
--- a/drivers/base/core.c
+++ b/drivers/base/core.c
@@ -1730,8 +1730,5 @@ void device_shutdown(void)
1730 dev->driver->shutdown(dev); 1730 dev->driver->shutdown(dev);
1731 } 1731 }
1732 } 1732 }
1733 kobject_put(sysfs_dev_char_kobj);
1734 kobject_put(sysfs_dev_block_kobj);
1735 kobject_put(dev_kobj);
1736 async_synchronize_full(); 1733 async_synchronize_full();
1737} 1734}