mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
[PATCH] devfs: Remove devfs_mk_bdev() function from the kernel tree
Removes the devfs_mk_bdev() function and all callers of it. Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
79021a625c
commit
1a715c5cf9
5 changed files with 0 additions and 54 deletions
|
|
@ -224,7 +224,6 @@ static struct completion device_release;
|
|||
static unsigned short virtual_dma_port = 0x3f0;
|
||||
irqreturn_t floppy_interrupt(int irq, void *dev_id, struct pt_regs *regs);
|
||||
static int set_dor(int fdc, char mask, char data);
|
||||
static void register_devfs_entries(int drive) __init;
|
||||
|
||||
#define K_64 0x10000 /* 64KB */
|
||||
|
||||
|
|
@ -3676,7 +3675,6 @@ static void __init config_types(void)
|
|||
first = 0;
|
||||
}
|
||||
printk("%s fd%d is %s", prepend, drive, name);
|
||||
register_devfs_entries(drive);
|
||||
}
|
||||
*UDP = *params;
|
||||
}
|
||||
|
|
@ -3969,23 +3967,6 @@ static int t360[] = { 1, 0 },
|
|||
static int *table_sup[] =
|
||||
{ NULL, t360, t1200, t3in + 5 + 8, t3in + 5, t3in, t3in };
|
||||
|
||||
static void __init register_devfs_entries(int drive)
|
||||
{
|
||||
int base_minor = (drive < 4) ? drive : (124 + drive);
|
||||
|
||||
if (UDP->cmos < ARRAY_SIZE(default_drive_params)) {
|
||||
int i = 0;
|
||||
do {
|
||||
int minor = base_minor + (table_sup[UDP->cmos][i] << 2);
|
||||
|
||||
devfs_mk_bdev(MKDEV(FLOPPY_MAJOR, minor),
|
||||
S_IFBLK | S_IRUSR | S_IWUSR | S_IRGRP |
|
||||
S_IWGRP, "floppy/%d%s", drive,
|
||||
table[table_sup[UDP->cmos][i]]);
|
||||
} while (table_sup[UDP->cmos][i++]);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Floppy Driver initialization
|
||||
* =============================
|
||||
|
|
|
|||
Loading…
Reference in a new issue