diff options
author | Kay Sievers <kay.sievers@suse.de> | 2005-11-16 03:00:00 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-01-04 19:18:08 -0500 |
commit | 312c004d36ce6c739512bac83b452f4c20ab1f62 (patch) | |
tree | e61e8331680a0da29557fe21414d3b31e62c9293 /fs/partitions | |
parent | 5f123fbd80f4f788554636f02bf73e40f914e0d6 (diff) |
[PATCH] driver core: replace "hotplug" by "uevent"
Leave the overloaded "hotplug" word to susbsystems which are handling
real devices. The driver core does not "plug" anything, it just exports
the state to userspace and generates events.
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs/partitions')
-rw-r--r-- | fs/partitions/check.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/partitions/check.c b/fs/partitions/check.c index 8dc1822a7022..7187a57d51e8 100644 --- a/fs/partitions/check.c +++ b/fs/partitions/check.c | |||
@@ -226,7 +226,7 @@ static struct sysfs_ops part_sysfs_ops = { | |||
226 | static ssize_t part_uevent_store(struct hd_struct * p, | 226 | static ssize_t part_uevent_store(struct hd_struct * p, |
227 | const char *page, size_t count) | 227 | const char *page, size_t count) |
228 | { | 228 | { |
229 | kobject_hotplug(&p->kobj, KOBJ_ADD); | 229 | kobject_uevent(&p->kobj, KOBJ_ADD); |
230 | return count; | 230 | return count; |
231 | } | 231 | } |
232 | static ssize_t part_dev_read(struct hd_struct * p, char *page) | 232 | static ssize_t part_dev_read(struct hd_struct * p, char *page) |
@@ -360,7 +360,7 @@ void register_disk(struct gendisk *disk) | |||
360 | if ((err = kobject_add(&disk->kobj))) | 360 | if ((err = kobject_add(&disk->kobj))) |
361 | return; | 361 | return; |
362 | disk_sysfs_symlinks(disk); | 362 | disk_sysfs_symlinks(disk); |
363 | kobject_hotplug(&disk->kobj, KOBJ_ADD); | 363 | kobject_uevent(&disk->kobj, KOBJ_ADD); |
364 | 364 | ||
365 | /* No minors to use for partitions */ | 365 | /* No minors to use for partitions */ |
366 | if (disk->minors == 1) { | 366 | if (disk->minors == 1) { |
@@ -465,6 +465,6 @@ void del_gendisk(struct gendisk *disk) | |||
465 | sysfs_remove_link(&disk->driverfs_dev->kobj, "block"); | 465 | sysfs_remove_link(&disk->driverfs_dev->kobj, "block"); |
466 | put_device(disk->driverfs_dev); | 466 | put_device(disk->driverfs_dev); |
467 | } | 467 | } |
468 | kobject_hotplug(&disk->kobj, KOBJ_REMOVE); | 468 | kobject_uevent(&disk->kobj, KOBJ_REMOVE); |
469 | kobject_del(&disk->kobj); | 469 | kobject_del(&disk->kobj); |
470 | } | 470 | } |