Skip to contentSkip to conversation

ide: remove QUIRK_LIST()

PATCH In review Bartlomiej Zolnierkiewicz 2 participants 2 messages Oct 30, 2007 – Nov 4, 2007 libata

lore
Share & tools
lore
#0 lore raw

PATCH 11/15 ide: remove QUIRK_LIST()

---
 drivers/ide/ide-iops.c  |    6 ------
 drivers/ide/ide-probe.c |    5 ++++-
 include/linux/ide.h     |    1 -
 3 files changed, 4 insertions(+), 8 deletions(-)
drivers/ide/ide-iops.c +0 -6
Index: b/drivers/ide/ide-iops.c
===================================================================
@@ -189,12 +189,6 @@ void SELECT_MASK (ide_drive_t *drive, in
 		HWIF(drive)->maskproc(drive, mask);
 }
 
-void QUIRK_LIST (ide_drive_t *drive)
-{
-	if (HWIF(drive)->quirkproc)
-		drive->quirk_list = HWIF(drive)->quirkproc(drive);
-}
-
 /*
  * Some localbus EIDE interfaces require a special access sequence
  * when using 32-bit I/O instructions to transfer data.  We call this
drivers/ide/ide-probe.c +4 -1
Index: b/drivers/ide/ide-probe.c
===================================================================
@@ -247,7 +247,10 @@ static inline void do_identify (ide_driv
 
 	drive->media = ide_disk;
 	printk("%s DISK drive\n", (id->config == 0x848a) ? "CFA" : "ATA" );
-	QUIRK_LIST(drive);
+
+	if (hwif->quirkproc)
+		drive->quirk_list = hwif->quirkproc(drive);
+
 	return;
 
 err_misc:
include/linux/ide.h +0 -1
Index: b/include/linux/ide.h
===================================================================
@@ -971,7 +971,6 @@ extern u32 ide_read_24(ide_drive_t *);
 extern void SELECT_DRIVE(ide_drive_t *);
 extern void SELECT_INTERRUPT(ide_drive_t *);
 extern void SELECT_MASK(ide_drive_t *, int);
-extern void QUIRK_LIST(ide_drive_t *);
 
 extern int drive_is_ready(ide_drive_t *);