diff options
Diffstat (limited to 'fs/partitions/check.c')
-rw-r--r-- | fs/partitions/check.c | 26 |
1 files changed, 5 insertions, 21 deletions
diff --git a/fs/partitions/check.c b/fs/partitions/check.c index 2ef313a96b66..2ab7701eb2fb 100644 --- a/fs/partitions/check.c +++ b/fs/partitions/check.c | |||
@@ -21,7 +21,6 @@ | |||
21 | #include <linux/devfs_fs_kernel.h> | 21 | #include <linux/devfs_fs_kernel.h> |
22 | 22 | ||
23 | #include "check.h" | 23 | #include "check.h" |
24 | #include "devfs.h" | ||
25 | 24 | ||
26 | #include "acorn.h" | 25 | #include "acorn.h" |
27 | #include "amiga.h" | 26 | #include "amiga.h" |
@@ -161,18 +160,11 @@ check_partition(struct gendisk *hd, struct block_device *bdev) | |||
161 | if (!state) | 160 | if (!state) |
162 | return NULL; | 161 | return NULL; |
163 | 162 | ||
164 | #ifdef CONFIG_DEVFS_FS | 163 | disk_name(hd, 0, state->name); |
165 | if (hd->devfs_name[0] != '\0') { | 164 | printk(KERN_INFO " %s:", state->name); |
166 | printk(KERN_INFO " /dev/%s:", hd->devfs_name); | 165 | if (isdigit(state->name[strlen(state->name)-1])) |
167 | sprintf(state->name, "p"); | 166 | sprintf(state->name, "p"); |
168 | } | 167 | |
169 | #endif | ||
170 | else { | ||
171 | disk_name(hd, 0, state->name); | ||
172 | printk(KERN_INFO " %s:", state->name); | ||
173 | if (isdigit(state->name[strlen(state->name)-1])) | ||
174 | sprintf(state->name, "p"); | ||
175 | } | ||
176 | state->limit = hd->minors; | 168 | state->limit = hd->minors; |
177 | i = res = 0; | 169 | i = res = 0; |
178 | while (!res && check_part[i]) { | 170 | while (!res && check_part[i]) { |
@@ -423,14 +415,8 @@ void register_disk(struct gendisk *disk) | |||
423 | disk_sysfs_add_subdirs(disk); | 415 | disk_sysfs_add_subdirs(disk); |
424 | 416 | ||
425 | /* No minors to use for partitions */ | 417 | /* No minors to use for partitions */ |
426 | if (disk->minors == 1) { | 418 | if (disk->minors == 1) |
427 | if (disk->devfs_name[0] != '\0') | ||
428 | devfs_add_disk(disk); | ||
429 | goto exit; | 419 | goto exit; |
430 | } | ||
431 | |||
432 | /* always add handle for the whole disk */ | ||
433 | devfs_add_partitioned(disk); | ||
434 | 420 | ||
435 | /* No such device (e.g., media were just removed) */ | 421 | /* No such device (e.g., media were just removed) */ |
436 | if (!get_capacity(disk)) | 422 | if (!get_capacity(disk)) |
@@ -538,8 +524,6 @@ void del_gendisk(struct gendisk *disk) | |||
538 | disk_stat_set_all(disk, 0); | 524 | disk_stat_set_all(disk, 0); |
539 | disk->stamp = 0; | 525 | disk->stamp = 0; |
540 | 526 | ||
541 | devfs_remove_disk(disk); | ||
542 | |||
543 | kobject_uevent(&disk->kobj, KOBJ_REMOVE); | 527 | kobject_uevent(&disk->kobj, KOBJ_REMOVE); |
544 | if (disk->holder_dir) | 528 | if (disk->holder_dir) |
545 | kobject_unregister(disk->holder_dir); | 529 | kobject_unregister(disk->holder_dir); |