-- Bartlomiej[ide] kill recreate_proc_ide_device(), it is unused and not needed
drivers/ide/ide-proc.c | 28 ---------------------------- include/linux/ide.h | 1 - 2 files changed, 29 deletions(-)
diff -puN drivers/ide/ide-proc.c~recreate_proc_ide_device drivers/ide/ide-proc.c --- linux-2.5.70-bk8/drivers/ide/ide-proc.c~recreate_proc_ide_device Wed Jun 4 00:06:42 2003 +++ linux-2.5.70-bk8-root/drivers/ide/ide-proc.c Wed Jun 4 00:06:42 2003 @@ -729,34 +729,6 @@ void create_proc_ide_drives(ide_hwif_t * EXPORT_SYMBOL(create_proc_ide_drives); -void recreate_proc_ide_device(ide_hwif_t *hwif, ide_drive_t *drive) -{ - struct proc_dir_entry *ent; - struct proc_dir_entry *parent = hwif->proc; - char name[64]; - - if (drive->present && !drive->proc) { - drive->proc = proc_mkdir(drive->name, parent); - if (drive->proc) - ide_add_proc_entries(drive->proc, generic_drive_entries, drive); - -/* - * assume that we have these already, however, should test FIXME! - * if (driver) { - * ide_add_proc_entries(drive->proc, generic_subdriver_entries, drive); - * ide_add_proc_entries(drive->proc, driver->proc, drive); - * } - * - */ - sprintf(name,"ide%d/%s", (drive->name[2]-'a')/2, drive->name); - ent = proc_symlink(drive->name, proc_ide_root, name); - if (!ent) - return; - } -} - -EXPORT_SYMBOL(recreate_proc_ide_device); - void destroy_proc_ide_device(ide_hwif_t *hwif, ide_drive_t *drive) { ide_driver_t *driver = drive->driver; diff -puN include/linux/ide.h~recreate_proc_ide_device include/linux/ide.h --- linux-2.5.70-bk8/include/linux/ide.h~recreate_proc_ide_device Wed Jun 4 00:06:42 2003 +++ linux-2.5.70-bk8-root/include/linux/ide.h Wed Jun 4 00:06:42 2003 @@ -1115,7 +1115,6 @@ typedef struct { #ifdef CONFIG_PROC_FS extern void proc_ide_create(void); extern void proc_ide_destroy(void); -extern void recreate_proc_ide_device(ide_hwif_t *, ide_drive_t *); extern void destroy_proc_ide_device(ide_hwif_t *, ide_drive_t *); extern void destroy_proc_ide_drives(ide_hwif_t *); extern void create_proc_ide_interfaces(void);
_
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/