linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] kill recreate_proc_ide_device()
@ 2003-06-03 22:39 Bartlomiej Zolnierkiewicz
  0 siblings, 0 replies; only message in thread
From: Bartlomiej Zolnierkiewicz @ 2003-06-03 22:39 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: linux-kernel


Just tiny cleanup, please apply.
--
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);

_


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-06-03 22:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-03 22:39 [PATCH] kill recreate_proc_ide_device() Bartlomiej Zolnierkiewicz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).