diff options
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 | } |