diff options
-rw-r--r-- | drivers/block/floppy.c | 19 | ||||
-rw-r--r-- | drivers/md/dm-ioctl.c | 14 | ||||
-rw-r--r-- | drivers/md/md.c | 13 | ||||
-rw-r--r-- | fs/partitions/check.c | 4 | ||||
-rw-r--r-- | include/linux/devfs_fs_kernel.h | 4 |
5 files changed, 0 insertions, 54 deletions
diff --git a/drivers/block/floppy.c b/drivers/block/floppy.c index 03a4dff05f27..ec14e6e6bccb 100644 --- a/drivers/block/floppy.c +++ b/drivers/block/floppy.c | |||
@@ -224,7 +224,6 @@ static struct completion device_release; | |||
224 | static unsigned short virtual_dma_port = 0x3f0; | 224 | static unsigned short virtual_dma_port = 0x3f0; |
225 | irqreturn_t floppy_interrupt(int irq, void *dev_id, struct pt_regs *regs); | 225 | irqreturn_t floppy_interrupt(int irq, void *dev_id, struct pt_regs *regs); |
226 | static int set_dor(int fdc, char mask, char data); | 226 | static int set_dor(int fdc, char mask, char data); |
227 | static void register_devfs_entries(int drive) __init; | ||
228 | 227 | ||
229 | #define K_64 0x10000 /* 64KB */ | 228 | #define K_64 0x10000 /* 64KB */ |
230 | 229 | ||
@@ -3676,7 +3675,6 @@ static void __init config_types(void) | |||
3676 | first = 0; | 3675 | first = 0; |
3677 | } | 3676 | } |
3678 | printk("%s fd%d is %s", prepend, drive, name); | 3677 | printk("%s fd%d is %s", prepend, drive, name); |
3679 | register_devfs_entries(drive); | ||
3680 | } | 3678 | } |
3681 | *UDP = *params; | 3679 | *UDP = *params; |
3682 | } | 3680 | } |
@@ -3969,23 +3967,6 @@ static int t360[] = { 1, 0 }, | |||
3969 | static int *table_sup[] = | 3967 | static int *table_sup[] = |
3970 | { NULL, t360, t1200, t3in + 5 + 8, t3in + 5, t3in, t3in }; | 3968 | { NULL, t360, t1200, t3in + 5 + 8, t3in + 5, t3in, t3in }; |
3971 | 3969 | ||
3972 | static void __init register_devfs_entries(int drive) | ||
3973 | { | ||
3974 | int base_minor = (drive < 4) ? drive : (124 + drive); | ||
3975 | |||
3976 | if (UDP->cmos < ARRAY_SIZE(default_drive_params)) { | ||
3977 | int i = 0; | ||
3978 | do { | ||
3979 | int minor = base_minor + (table_sup[UDP->cmos][i] << 2); | ||
3980 | |||
3981 | devfs_mk_bdev(MKDEV(FLOPPY_MAJOR, minor), | ||
3982 | S_IFBLK | S_IRUSR | S_IWUSR | S_IRGRP | | ||
3983 | S_IWGRP, "floppy/%d%s", drive, | ||
3984 | table[table_sup[UDP->cmos][i]]); | ||
3985 | } while (table_sup[UDP->cmos][i++]); | ||
3986 | } | ||
3987 | } | ||
3988 | |||
3989 | /* | 3970 | /* |
3990 | * Floppy Driver initialization | 3971 | * Floppy Driver initialization |
3991 | * ============================= | 3972 | * ============================= |
diff --git a/drivers/md/dm-ioctl.c b/drivers/md/dm-ioctl.c index 181971a978ba..6e1b51d748ac 100644 --- a/drivers/md/dm-ioctl.c +++ b/drivers/md/dm-ioctl.c | |||
@@ -173,16 +173,6 @@ static void free_cell(struct hash_cell *hc) | |||
173 | /* | 173 | /* |
174 | * devfs stuff. | 174 | * devfs stuff. |
175 | */ | 175 | */ |
176 | static int register_with_devfs(struct hash_cell *hc) | ||
177 | { | ||
178 | struct gendisk *disk = dm_disk(hc->md); | ||
179 | |||
180 | devfs_mk_bdev(MKDEV(disk->major, disk->first_minor), | ||
181 | S_IFBLK | S_IRUSR | S_IWUSR | S_IRGRP, | ||
182 | DM_DIR "/%s", hc->name); | ||
183 | return 0; | ||
184 | } | ||
185 | |||
186 | static int unregister_with_devfs(struct hash_cell *hc) | 176 | static int unregister_with_devfs(struct hash_cell *hc) |
187 | { | 177 | { |
188 | devfs_remove(DM_DIR"/%s", hc->name); | 178 | devfs_remove(DM_DIR"/%s", hc->name); |
@@ -225,7 +215,6 @@ static int dm_hash_insert(const char *name, const char *uuid, struct mapped_devi | |||
225 | } | 215 | } |
226 | list_add(&cell->uuid_list, _uuid_buckets + hash_str(uuid)); | 216 | list_add(&cell->uuid_list, _uuid_buckets + hash_str(uuid)); |
227 | } | 217 | } |
228 | register_with_devfs(cell); | ||
229 | dm_get(md); | 218 | dm_get(md); |
230 | dm_set_mdptr(md, cell); | 219 | dm_set_mdptr(md, cell); |
231 | up_write(&_hash_lock); | 220 | up_write(&_hash_lock); |
@@ -348,9 +337,6 @@ static int dm_hash_rename(const char *old, const char *new) | |||
348 | hc->name = new_name; | 337 | hc->name = new_name; |
349 | list_add(&hc->name_list, _name_buckets + hash_str(new_name)); | 338 | list_add(&hc->name_list, _name_buckets + hash_str(new_name)); |
350 | 339 | ||
351 | /* rename the device node in devfs */ | ||
352 | register_with_devfs(hc); | ||
353 | |||
354 | /* | 340 | /* |
355 | * Wake up any dm event waiters. | 341 | * Wake up any dm event waiters. |
356 | */ | 342 | */ |
diff --git a/drivers/md/md.c b/drivers/md/md.c index 33b1a8943e4a..ee7320b4a30e 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c | |||
@@ -5538,8 +5538,6 @@ static void md_geninit(void) | |||
5538 | 5538 | ||
5539 | static int __init md_init(void) | 5539 | static int __init md_init(void) |
5540 | { | 5540 | { |
5541 | int minor; | ||
5542 | |||
5543 | printk(KERN_INFO "md: md driver %d.%d.%d MAX_MD_DEVS=%d," | 5541 | printk(KERN_INFO "md: md driver %d.%d.%d MAX_MD_DEVS=%d," |
5544 | " MD_SB_DISKS=%d\n", | 5542 | " MD_SB_DISKS=%d\n", |
5545 | MD_MAJOR_VERSION, MD_MINOR_VERSION, | 5543 | MD_MAJOR_VERSION, MD_MINOR_VERSION, |
@@ -5558,17 +5556,6 @@ static int __init md_init(void) | |||
5558 | blk_register_region(MKDEV(mdp_major, 0), MAX_MD_DEVS<<MdpMinorShift, THIS_MODULE, | 5556 | blk_register_region(MKDEV(mdp_major, 0), MAX_MD_DEVS<<MdpMinorShift, THIS_MODULE, |
5559 | md_probe, NULL, NULL); | 5557 | md_probe, NULL, NULL); |
5560 | 5558 | ||
5561 | for (minor=0; minor < MAX_MD_DEVS; ++minor) | ||
5562 | devfs_mk_bdev(MKDEV(MAJOR_NR, minor), | ||
5563 | S_IFBLK|S_IRUSR|S_IWUSR, | ||
5564 | "md/%d", minor); | ||
5565 | |||
5566 | for (minor=0; minor < MAX_MD_DEVS; ++minor) | ||
5567 | devfs_mk_bdev(MKDEV(mdp_major, minor<<MdpMinorShift), | ||
5568 | S_IFBLK|S_IRUSR|S_IWUSR, | ||
5569 | "md/mdp%d", minor); | ||
5570 | |||
5571 | |||
5572 | register_reboot_notifier(&md_notifier); | 5559 | register_reboot_notifier(&md_notifier); |
5573 | raid_table_header = register_sysctl_table(raid_root_table, 1); | 5560 | raid_table_header = register_sysctl_table(raid_root_table, 1); |
5574 | 5561 | ||
diff --git a/fs/partitions/check.c b/fs/partitions/check.c index 2ab7701eb2fb..d7a5078b3d75 100644 --- a/fs/partitions/check.c +++ b/fs/partitions/check.c | |||
@@ -342,10 +342,6 @@ void add_partition(struct gendisk *disk, int part, sector_t start, sector_t len) | |||
342 | p->nr_sects = len; | 342 | p->nr_sects = len; |
343 | p->partno = part; | 343 | p->partno = part; |
344 | 344 | ||
345 | devfs_mk_bdev(MKDEV(disk->major, disk->first_minor + part), | ||
346 | S_IFBLK|S_IRUSR|S_IWUSR, | ||
347 | "%s/part%d", disk->devfs_name, part); | ||
348 | |||
349 | if (isdigit(disk->kobj.name[strlen(disk->kobj.name)-1])) | 345 | if (isdigit(disk->kobj.name[strlen(disk->kobj.name)-1])) |
350 | snprintf(p->kobj.name,KOBJ_NAME_LEN,"%sp%d",disk->kobj.name,part); | 346 | snprintf(p->kobj.name,KOBJ_NAME_LEN,"%sp%d",disk->kobj.name,part); |
351 | else | 347 | else |
diff --git a/include/linux/devfs_fs_kernel.h b/include/linux/devfs_fs_kernel.h index da336a3c6c7b..6d9f003dbce5 100644 --- a/include/linux/devfs_fs_kernel.h +++ b/include/linux/devfs_fs_kernel.h | |||
@@ -6,10 +6,6 @@ | |||
6 | #include <linux/types.h> | 6 | #include <linux/types.h> |
7 | #include <asm/semaphore.h> | 7 | #include <asm/semaphore.h> |
8 | 8 | ||
9 | static inline int devfs_mk_bdev(dev_t dev, umode_t mode, const char *fmt, ...) | ||
10 | { | ||
11 | return 0; | ||
12 | } | ||
13 | static inline int devfs_mk_cdev(dev_t dev, umode_t mode, const char *fmt, ...) | 9 | static inline int devfs_mk_cdev(dev_t dev, umode_t mode, const char *fmt, ...) |
14 | { | 10 | { |
15 | return 0; | 11 | return 0; |