|
23 | 23 |
|
24 | 24 | #define PDC202XX_DEBUG_DRIVE_INFO 0 |
25 | 25 |
|
26 | | -static const char *pdc_quirk_drives[] = { |
27 | | - "QUANTUM FIREBALLlct08 08", |
28 | | - "QUANTUM FIREBALLP KA6.4", |
29 | | - "QUANTUM FIREBALLP KA9.1", |
30 | | - "QUANTUM FIREBALLP LM20.4", |
31 | | - "QUANTUM FIREBALLP KX13.6", |
32 | | - "QUANTUM FIREBALLP KX20.5", |
33 | | - "QUANTUM FIREBALLP KX27.3", |
34 | | - "QUANTUM FIREBALLP LM20.5", |
35 | | - NULL |
36 | | -}; |
37 | | - |
38 | 26 | static void pdc_old_disable_66MHz_clock(ide_hwif_t *); |
39 | 27 |
|
40 | 28 | static void pdc202xx_set_mode(ide_drive_t *drive, const u8 speed) |
@@ -151,19 +139,6 @@ static void pdc_old_disable_66MHz_clock(ide_hwif_t *hwif) |
151 | 139 | outb(clock & ~(hwif->channel ? 0x08 : 0x02), clock_reg); |
152 | 140 | } |
153 | 141 |
|
154 | | -static void pdc202xx_quirkproc(ide_drive_t *drive) |
155 | | -{ |
156 | | - const char **list, *m = (char *)&drive->id[ATA_ID_PROD]; |
157 | | - |
158 | | - for (list = pdc_quirk_drives; *list != NULL; list++) |
159 | | - if (strstr(m, *list) != NULL) { |
160 | | - drive->quirk_list = 2; |
161 | | - return; |
162 | | - } |
163 | | - |
164 | | - drive->quirk_list = 0; |
165 | | -} |
166 | | - |
167 | 142 | static void pdc202xx_dma_start(ide_drive_t *drive) |
168 | 143 | { |
169 | 144 | if (drive->current_speed > XFER_UDMA_2) |
@@ -256,13 +231,11 @@ static void __devinit pdc202ata4_fixup_irq(struct pci_dev *dev, |
256 | 231 | static const struct ide_port_ops pdc20246_port_ops = { |
257 | 232 | .set_pio_mode = pdc202xx_set_pio_mode, |
258 | 233 | .set_dma_mode = pdc202xx_set_mode, |
259 | | - .quirkproc = pdc202xx_quirkproc, |
260 | 234 | }; |
261 | 235 |
|
262 | 236 | static const struct ide_port_ops pdc2026x_port_ops = { |
263 | 237 | .set_pio_mode = pdc202xx_set_pio_mode, |
264 | 238 | .set_dma_mode = pdc202xx_set_mode, |
265 | | - .quirkproc = pdc202xx_quirkproc, |
266 | 239 | .cable_detect = pdc2026x_cable_detect, |
267 | 240 | }; |
268 | 241 |
|
|
0 commit comments