[PATCH] remove unused ide_devices_t from ide.c and ide.h

From: Bartlomiej Zolnierkiewicz
Date: Tue Feb 03 2004 - 10:53:34 EST



Introduced in 2.4.21 and never used.

linux-2.6.2-rc3-bk3-root/drivers/ide/ide.c | 12 ------------
linux-2.6.2-rc3-bk3-root/include/linux/ide.h | 14 --------------
2 files changed, 26 deletions(-)

diff -puN drivers/ide/ide.c~ide_devices_cleanup drivers/ide/ide.c
--- linux-2.6.2-rc3-bk3/drivers/ide/ide.c~ide_devices_cleanup 2004-02-03 15:57:04.080097824 +0100
+++ linux-2.6.2-rc3-bk3-root/drivers/ide/ide.c 2004-02-03 15:57:04.091096152 +0100
@@ -197,18 +197,6 @@ ide_hwif_t ide_hwifs[MAX_HWIFS]; /* mast

EXPORT_SYMBOL(ide_hwifs);

-ide_devices_t *idedisk;
-ide_devices_t *idecd;
-ide_devices_t *idefloppy;
-ide_devices_t *idetape;
-ide_devices_t *idescsi;
-
-EXPORT_SYMBOL(idedisk);
-EXPORT_SYMBOL(idecd);
-EXPORT_SYMBOL(idefloppy);
-EXPORT_SYMBOL(idetape);
-EXPORT_SYMBOL(idescsi);
-
extern ide_driver_t idedefault_driver;
static void setup_driver_defaults(ide_driver_t *driver);

diff -puN include/linux/ide.h~ide_devices_cleanup include/linux/ide.h
--- linux-2.6.2-rc3-bk3/include/linux/ide.h~ide_devices_cleanup 2004-02-03 15:57:04.084097216 +0100
+++ linux-2.6.2-rc3-bk3-root/include/linux/ide.h 2004-02-03 15:57:04.094095696 +0100
@@ -1214,13 +1214,6 @@ typedef struct ide_driver_s {

extern int generic_ide_ioctl(struct block_device *, unsigned, unsigned long);

-typedef struct ide_devices_s {
- char name[4]; /* hdX */
- unsigned attached : 1; /* native */
- unsigned alttached : 1; /* alternate */
- struct ide_devices_s *next;
-} ide_devices_t;
-
/*
* ide_hwifs[] is the master data structure used to keep track
* of just about everything in ide.c. Whenever possible, routines
@@ -1231,13 +1224,6 @@ typedef struct ide_devices_s {
*/
#ifndef _IDE_C
extern ide_hwif_t ide_hwifs[]; /* master data repository */
-
-extern ide_devices_t *idedisk;
-extern ide_devices_t *idecd;
-extern ide_devices_t *idefloppy;
-extern ide_devices_t *idetape;
-extern ide_devices_t *idescsi;
-
#endif
extern int noautodma;


_

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/