diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-03-24 18:22:52 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-03-24 18:22:52 -0400 |
commit | 2467922a560bb7e6eb4635435760ad0a2197ffcc (patch) | |
tree | 439b50edb4bff27c43004f2d350642d0d8699761 /drivers/ide | |
parent | f65dedfd7b75f19bde42bafbe84fddce18c42499 (diff) |
ide: remove no longer needed IDE_HFLAG[_FORCE]_LEGACY_IRQS
There should be no functional changes caused by this patch.
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide')
-rw-r--r-- | drivers/ide/atiixp.c | 3 | ||||
-rw-r--r-- | drivers/ide/ide-pci-generic.c | 4 | ||||
-rw-r--r-- | drivers/ide/piix.c | 11 | ||||
-rw-r--r-- | drivers/ide/serverworks.c | 9 | ||||
-rw-r--r-- | drivers/ide/sis5513.c | 2 | ||||
-rw-r--r-- | drivers/ide/slc90e66.c | 1 | ||||
-rw-r--r-- | drivers/ide/via82cxxx.c | 10 |
7 files changed, 6 insertions, 34 deletions
diff --git a/drivers/ide/atiixp.c b/drivers/ide/atiixp.c index ecd1e62ca91a..923cbfe259d3 100644 --- a/drivers/ide/atiixp.c +++ b/drivers/ide/atiixp.c | |||
@@ -142,7 +142,6 @@ static const struct ide_port_info atiixp_pci_info[] __devinitdata = { | |||
142 | .name = DRV_NAME, | 142 | .name = DRV_NAME, |
143 | .enablebits = {{0x48,0x01,0x00}, {0x48,0x08,0x00}}, | 143 | .enablebits = {{0x48,0x01,0x00}, {0x48,0x08,0x00}}, |
144 | .port_ops = &atiixp_port_ops, | 144 | .port_ops = &atiixp_port_ops, |
145 | .host_flags = IDE_HFLAG_LEGACY_IRQS, | ||
146 | .pio_mask = ATA_PIO4, | 145 | .pio_mask = ATA_PIO4, |
147 | .mwdma_mask = ATA_MWDMA2, | 146 | .mwdma_mask = ATA_MWDMA2, |
148 | .udma_mask = ATA_UDMA5, | 147 | .udma_mask = ATA_UDMA5, |
@@ -151,7 +150,7 @@ static const struct ide_port_info atiixp_pci_info[] __devinitdata = { | |||
151 | .name = DRV_NAME, | 150 | .name = DRV_NAME, |
152 | .enablebits = {{0x48,0x01,0x00}, {0x00,0x00,0x00}}, | 151 | .enablebits = {{0x48,0x01,0x00}, {0x00,0x00,0x00}}, |
153 | .port_ops = &atiixp_port_ops, | 152 | .port_ops = &atiixp_port_ops, |
154 | .host_flags = IDE_HFLAG_SINGLE | IDE_HFLAG_LEGACY_IRQS, | 153 | .host_flags = IDE_HFLAG_SINGLE, |
155 | .pio_mask = ATA_PIO4, | 154 | .pio_mask = ATA_PIO4, |
156 | .mwdma_mask = ATA_MWDMA2, | 155 | .mwdma_mask = ATA_MWDMA2, |
157 | .udma_mask = ATA_UDMA5, | 156 | .udma_mask = ATA_UDMA5, |
diff --git a/drivers/ide/ide-pci-generic.c b/drivers/ide/ide-pci-generic.c index bddae2b329a0..61111fd27130 100644 --- a/drivers/ide/ide-pci-generic.c +++ b/drivers/ide/ide-pci-generic.c | |||
@@ -33,8 +33,6 @@ static int ide_generic_all; /* Set to claim all devices */ | |||
33 | module_param_named(all_generic_ide, ide_generic_all, bool, 0444); | 33 | module_param_named(all_generic_ide, ide_generic_all, bool, 0444); |
34 | MODULE_PARM_DESC(all_generic_ide, "IDE generic will claim all unknown PCI IDE storage controllers."); | 34 | MODULE_PARM_DESC(all_generic_ide, "IDE generic will claim all unknown PCI IDE storage controllers."); |
35 | 35 | ||
36 | #define IDE_HFLAGS_UMC (IDE_HFLAG_NO_DMA | IDE_HFLAG_FORCE_LEGACY_IRQS) | ||
37 | |||
38 | #define DECLARE_GENERIC_PCI_DEV(extra_flags) \ | 36 | #define DECLARE_GENERIC_PCI_DEV(extra_flags) \ |
39 | { \ | 37 | { \ |
40 | .name = DRV_NAME, \ | 38 | .name = DRV_NAME, \ |
@@ -61,7 +59,7 @@ static const struct ide_port_info generic_chipsets[] __devinitdata = { | |||
61 | /* 2: SAMURAI / HT6565 / HINT_IDE */ | 59 | /* 2: SAMURAI / HT6565 / HINT_IDE */ |
62 | DECLARE_GENERIC_PCI_DEV(0), | 60 | DECLARE_GENERIC_PCI_DEV(0), |
63 | /* 3: UM8673F / UM8886A / UM8886BF */ | 61 | /* 3: UM8673F / UM8886A / UM8886BF */ |
64 | DECLARE_GENERIC_PCI_DEV(IDE_HFLAGS_UMC), | 62 | DECLARE_GENERIC_PCI_DEV(IDE_HFLAG_NO_DMA), |
65 | /* 4: VIA_IDE / OPTI621V / Piccolo010{2,3,5} */ | 63 | /* 4: VIA_IDE / OPTI621V / Piccolo010{2,3,5} */ |
66 | DECLARE_GENERIC_PCI_DEV(IDE_HFLAG_NO_AUTODMA), | 64 | DECLARE_GENERIC_PCI_DEV(IDE_HFLAG_NO_AUTODMA), |
67 | 65 | ||
diff --git a/drivers/ide/piix.c b/drivers/ide/piix.c index f1e2e4ef0d71..42c2e3522d74 100644 --- a/drivers/ide/piix.c +++ b/drivers/ide/piix.c | |||
@@ -318,19 +318,12 @@ static const struct ide_port_ops ich_port_ops = { | |||
318 | .cable_detect = piix_cable_detect, | 318 | .cable_detect = piix_cable_detect, |
319 | }; | 319 | }; |
320 | 320 | ||
321 | #ifndef CONFIG_IA64 | ||
322 | #define IDE_HFLAGS_PIIX IDE_HFLAG_LEGACY_IRQS | ||
323 | #else | ||
324 | #define IDE_HFLAGS_PIIX 0 | ||
325 | #endif | ||
326 | |||
327 | #define DECLARE_PIIX_DEV(udma) \ | 321 | #define DECLARE_PIIX_DEV(udma) \ |
328 | { \ | 322 | { \ |
329 | .name = DRV_NAME, \ | 323 | .name = DRV_NAME, \ |
330 | .init_hwif = init_hwif_piix, \ | 324 | .init_hwif = init_hwif_piix, \ |
331 | .enablebits = {{0x41,0x80,0x80}, {0x43,0x80,0x80}}, \ | 325 | .enablebits = {{0x41,0x80,0x80}, {0x43,0x80,0x80}}, \ |
332 | .port_ops = &piix_port_ops, \ | 326 | .port_ops = &piix_port_ops, \ |
333 | .host_flags = IDE_HFLAGS_PIIX, \ | ||
334 | .pio_mask = ATA_PIO4, \ | 327 | .pio_mask = ATA_PIO4, \ |
335 | .swdma_mask = ATA_SWDMA2_ONLY, \ | 328 | .swdma_mask = ATA_SWDMA2_ONLY, \ |
336 | .mwdma_mask = ATA_MWDMA12_ONLY, \ | 329 | .mwdma_mask = ATA_MWDMA12_ONLY, \ |
@@ -344,7 +337,6 @@ static const struct ide_port_ops ich_port_ops = { | |||
344 | .init_hwif = init_hwif_piix, \ | 337 | .init_hwif = init_hwif_piix, \ |
345 | .enablebits = {{0x41,0x80,0x80}, {0x43,0x80,0x80}}, \ | 338 | .enablebits = {{0x41,0x80,0x80}, {0x43,0x80,0x80}}, \ |
346 | .port_ops = &ich_port_ops, \ | 339 | .port_ops = &ich_port_ops, \ |
347 | .host_flags = IDE_HFLAGS_PIIX, \ | ||
348 | .pio_mask = ATA_PIO4, \ | 340 | .pio_mask = ATA_PIO4, \ |
349 | .swdma_mask = ATA_SWDMA2_ONLY, \ | 341 | .swdma_mask = ATA_SWDMA2_ONLY, \ |
350 | .mwdma_mask = ATA_MWDMA12_ONLY, \ | 342 | .mwdma_mask = ATA_MWDMA12_ONLY, \ |
@@ -360,8 +352,7 @@ static const struct ide_port_info piix_pci_info[] __devinitdata = { | |||
360 | */ | 352 | */ |
361 | .name = DRV_NAME, | 353 | .name = DRV_NAME, |
362 | .enablebits = {{0x6d,0xc0,0x80}, {0x6d,0xc0,0xc0}}, | 354 | .enablebits = {{0x6d,0xc0,0x80}, {0x6d,0xc0,0xc0}}, |
363 | .host_flags = IDE_HFLAG_ISA_PORTS | IDE_HFLAG_NO_DMA | | 355 | .host_flags = IDE_HFLAG_ISA_PORTS | IDE_HFLAG_NO_DMA, |
364 | IDE_HFLAGS_PIIX, | ||
365 | .pio_mask = ATA_PIO4, | 356 | .pio_mask = ATA_PIO4, |
366 | /* This is a painful system best to let it self tune for now */ | 357 | /* This is a painful system best to let it self tune for now */ |
367 | }, | 358 | }, |
diff --git a/drivers/ide/serverworks.c b/drivers/ide/serverworks.c index 382102ba467b..14718e73991e 100644 --- a/drivers/ide/serverworks.c +++ b/drivers/ide/serverworks.c | |||
@@ -353,14 +353,11 @@ static const struct ide_port_ops svwks_port_ops = { | |||
353 | .cable_detect = svwks_cable_detect, | 353 | .cable_detect = svwks_cable_detect, |
354 | }; | 354 | }; |
355 | 355 | ||
356 | #define IDE_HFLAGS_SVWKS IDE_HFLAG_LEGACY_IRQS | ||
357 | |||
358 | static const struct ide_port_info serverworks_chipsets[] __devinitdata = { | 356 | static const struct ide_port_info serverworks_chipsets[] __devinitdata = { |
359 | { /* 0: OSB4 */ | 357 | { /* 0: OSB4 */ |
360 | .name = DRV_NAME, | 358 | .name = DRV_NAME, |
361 | .init_chipset = init_chipset_svwks, | 359 | .init_chipset = init_chipset_svwks, |
362 | .port_ops = &osb4_port_ops, | 360 | .port_ops = &osb4_port_ops, |
363 | .host_flags = IDE_HFLAGS_SVWKS, | ||
364 | .pio_mask = ATA_PIO4, | 361 | .pio_mask = ATA_PIO4, |
365 | .mwdma_mask = ATA_MWDMA2, | 362 | .mwdma_mask = ATA_MWDMA2, |
366 | .udma_mask = 0x00, /* UDMA is problematic on OSB4 */ | 363 | .udma_mask = 0x00, /* UDMA is problematic on OSB4 */ |
@@ -369,7 +366,6 @@ static const struct ide_port_info serverworks_chipsets[] __devinitdata = { | |||
369 | .name = DRV_NAME, | 366 | .name = DRV_NAME, |
370 | .init_chipset = init_chipset_svwks, | 367 | .init_chipset = init_chipset_svwks, |
371 | .port_ops = &svwks_port_ops, | 368 | .port_ops = &svwks_port_ops, |
372 | .host_flags = IDE_HFLAGS_SVWKS, | ||
373 | .pio_mask = ATA_PIO4, | 369 | .pio_mask = ATA_PIO4, |
374 | .mwdma_mask = ATA_MWDMA2, | 370 | .mwdma_mask = ATA_MWDMA2, |
375 | .udma_mask = ATA_UDMA5, | 371 | .udma_mask = ATA_UDMA5, |
@@ -378,7 +374,6 @@ static const struct ide_port_info serverworks_chipsets[] __devinitdata = { | |||
378 | .name = DRV_NAME, | 374 | .name = DRV_NAME, |
379 | .init_chipset = init_chipset_svwks, | 375 | .init_chipset = init_chipset_svwks, |
380 | .port_ops = &svwks_port_ops, | 376 | .port_ops = &svwks_port_ops, |
381 | .host_flags = IDE_HFLAGS_SVWKS, | ||
382 | .pio_mask = ATA_PIO4, | 377 | .pio_mask = ATA_PIO4, |
383 | .mwdma_mask = ATA_MWDMA2, | 378 | .mwdma_mask = ATA_MWDMA2, |
384 | .udma_mask = ATA_UDMA5, | 379 | .udma_mask = ATA_UDMA5, |
@@ -387,7 +382,7 @@ static const struct ide_port_info serverworks_chipsets[] __devinitdata = { | |||
387 | .name = DRV_NAME, | 382 | .name = DRV_NAME, |
388 | .init_chipset = init_chipset_svwks, | 383 | .init_chipset = init_chipset_svwks, |
389 | .port_ops = &svwks_port_ops, | 384 | .port_ops = &svwks_port_ops, |
390 | .host_flags = IDE_HFLAGS_SVWKS | IDE_HFLAG_SINGLE, | 385 | .host_flags = IDE_HFLAG_SINGLE, |
391 | .pio_mask = ATA_PIO4, | 386 | .pio_mask = ATA_PIO4, |
392 | .mwdma_mask = ATA_MWDMA2, | 387 | .mwdma_mask = ATA_MWDMA2, |
393 | .udma_mask = ATA_UDMA5, | 388 | .udma_mask = ATA_UDMA5, |
@@ -396,7 +391,7 @@ static const struct ide_port_info serverworks_chipsets[] __devinitdata = { | |||
396 | .name = DRV_NAME, | 391 | .name = DRV_NAME, |
397 | .init_chipset = init_chipset_svwks, | 392 | .init_chipset = init_chipset_svwks, |
398 | .port_ops = &svwks_port_ops, | 393 | .port_ops = &svwks_port_ops, |
399 | .host_flags = IDE_HFLAGS_SVWKS | IDE_HFLAG_SINGLE, | 394 | .host_flags = IDE_HFLAG_SINGLE, |
400 | .pio_mask = ATA_PIO4, | 395 | .pio_mask = ATA_PIO4, |
401 | .mwdma_mask = ATA_MWDMA2, | 396 | .mwdma_mask = ATA_MWDMA2, |
402 | .udma_mask = ATA_UDMA5, | 397 | .udma_mask = ATA_UDMA5, |
diff --git a/drivers/ide/sis5513.c b/drivers/ide/sis5513.c index 9ec1a4a4432c..d2d54aaea13a 100644 --- a/drivers/ide/sis5513.c +++ b/drivers/ide/sis5513.c | |||
@@ -563,7 +563,7 @@ static const struct ide_port_info sis5513_chipset __devinitdata = { | |||
563 | .name = DRV_NAME, | 563 | .name = DRV_NAME, |
564 | .init_chipset = init_chipset_sis5513, | 564 | .init_chipset = init_chipset_sis5513, |
565 | .enablebits = { {0x4a, 0x02, 0x02}, {0x4a, 0x04, 0x04} }, | 565 | .enablebits = { {0x4a, 0x02, 0x02}, {0x4a, 0x04, 0x04} }, |
566 | .host_flags = IDE_HFLAG_LEGACY_IRQS | IDE_HFLAG_NO_AUTODMA, | 566 | .host_flags = IDE_HFLAG_NO_AUTODMA, |
567 | .pio_mask = ATA_PIO4, | 567 | .pio_mask = ATA_PIO4, |
568 | .mwdma_mask = ATA_MWDMA2, | 568 | .mwdma_mask = ATA_MWDMA2, |
569 | }; | 569 | }; |
diff --git a/drivers/ide/slc90e66.c b/drivers/ide/slc90e66.c index 40b4b94a4288..f55d7d6313e8 100644 --- a/drivers/ide/slc90e66.c +++ b/drivers/ide/slc90e66.c | |||
@@ -136,7 +136,6 @@ static const struct ide_port_info slc90e66_chipset __devinitdata = { | |||
136 | .name = DRV_NAME, | 136 | .name = DRV_NAME, |
137 | .enablebits = { {0x41, 0x80, 0x80}, {0x43, 0x80, 0x80} }, | 137 | .enablebits = { {0x41, 0x80, 0x80}, {0x43, 0x80, 0x80} }, |
138 | .port_ops = &slc90e66_port_ops, | 138 | .port_ops = &slc90e66_port_ops, |
139 | .host_flags = IDE_HFLAG_LEGACY_IRQS, | ||
140 | .pio_mask = ATA_PIO4, | 139 | .pio_mask = ATA_PIO4, |
141 | .swdma_mask = ATA_SWDMA2_ONLY, | 140 | .swdma_mask = ATA_SWDMA2_ONLY, |
142 | .mwdma_mask = ATA_MWDMA12_ONLY, | 141 | .mwdma_mask = ATA_MWDMA12_ONLY, |
diff --git a/drivers/ide/via82cxxx.c b/drivers/ide/via82cxxx.c index 6092fe3f409d..a41eab5cb5df 100644 --- a/drivers/ide/via82cxxx.c +++ b/drivers/ide/via82cxxx.c | |||
@@ -443,16 +443,6 @@ static int __devinit via_init_one(struct pci_dev *dev, const struct pci_device_i | |||
443 | if ((via_config->flags & VIA_NO_UNMASK) == 0) | 443 | if ((via_config->flags & VIA_NO_UNMASK) == 0) |
444 | d.host_flags |= IDE_HFLAG_UNMASK_IRQS; | 444 | d.host_flags |= IDE_HFLAG_UNMASK_IRQS; |
445 | 445 | ||
446 | #ifdef CONFIG_PPC_CHRP | ||
447 | if (machine_is(chrp) && _chrp_type == _CHRP_Pegasos) | ||
448 | d.host_flags |= IDE_HFLAG_FORCE_LEGACY_IRQS; | ||
449 | #endif | ||
450 | |||
451 | #ifdef CONFIG_AMIGAONE | ||
452 | if (machine_is(amigaone)) | ||
453 | d.host_flags |= IDE_HFLAG_FORCE_LEGACY_IRQS; | ||
454 | #endif | ||
455 | |||
456 | d.udma_mask = via_config->udma_mask; | 446 | d.udma_mask = via_config->udma_mask; |
457 | 447 | ||
458 | vdev = kzalloc(sizeof(*vdev), GFP_KERNEL); | 448 | vdev = kzalloc(sizeof(*vdev), GFP_KERNEL); |