diff options
Diffstat (limited to 'drivers/ata/pata_ali.c')
-rw-r--r-- | drivers/ata/pata_ali.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/drivers/ata/pata_ali.c b/drivers/ata/pata_ali.c index c5d61d1911a5..ab44d18850f6 100644 --- a/drivers/ata/pata_ali.c +++ b/drivers/ata/pata_ali.c | |||
@@ -153,11 +153,11 @@ static void ali_early_error_handler(struct ata_port *ap) | |||
153 | 153 | ||
154 | static unsigned long ali_20_filter(const struct ata_port *ap, struct ata_device *adev, unsigned long mask) | 154 | static unsigned long ali_20_filter(const struct ata_port *ap, struct ata_device *adev, unsigned long mask) |
155 | { | 155 | { |
156 | char model_num[40]; | 156 | char model_num[ATA_ID_PROD_LEN + 1]; |
157 | /* No DMA on anything but a disk for now */ | 157 | /* No DMA on anything but a disk for now */ |
158 | if (adev->class != ATA_DEV_ATA) | 158 | if (adev->class != ATA_DEV_ATA) |
159 | mask &= ~(ATA_MASK_MWDMA | ATA_MASK_UDMA); | 159 | mask &= ~(ATA_MASK_MWDMA | ATA_MASK_UDMA); |
160 | ata_id_string(adev->id, model_num, ATA_ID_PROD_OFS, sizeof(model_num)); | 160 | ata_id_c_string(adev->id, model_num, ATA_ID_PROD, sizeof(model_num)); |
161 | if (strstr(model_num, "WDC")) | 161 | if (strstr(model_num, "WDC")) |
162 | return mask &= ~ATA_MASK_UDMA; | 162 | return mask &= ~ATA_MASK_UDMA; |
163 | return ata_pci_default_filter(ap, adev, mask); | 163 | return ata_pci_default_filter(ap, adev, mask); |
@@ -370,14 +370,14 @@ static struct ata_port_operations ali_early_port_ops = { | |||
370 | .qc_prep = ata_qc_prep, | 370 | .qc_prep = ata_qc_prep, |
371 | .qc_issue = ata_qc_issue_prot, | 371 | .qc_issue = ata_qc_issue_prot, |
372 | 372 | ||
373 | .data_xfer = ata_pio_data_xfer, | 373 | .data_xfer = ata_data_xfer, |
374 | 374 | ||
375 | .irq_handler = ata_interrupt, | 375 | .irq_handler = ata_interrupt, |
376 | .irq_clear = ata_bmdma_irq_clear, | 376 | .irq_clear = ata_bmdma_irq_clear, |
377 | .irq_on = ata_irq_on, | ||
378 | .irq_ack = ata_irq_ack, | ||
377 | 379 | ||
378 | .port_start = ata_port_start, | 380 | .port_start = ata_port_start, |
379 | .port_stop = ata_port_stop, | ||
380 | .host_stop = ata_host_stop | ||
381 | }; | 381 | }; |
382 | 382 | ||
383 | /* | 383 | /* |
@@ -411,14 +411,14 @@ static struct ata_port_operations ali_20_port_ops = { | |||
411 | .qc_prep = ata_qc_prep, | 411 | .qc_prep = ata_qc_prep, |
412 | .qc_issue = ata_qc_issue_prot, | 412 | .qc_issue = ata_qc_issue_prot, |
413 | 413 | ||
414 | .data_xfer = ata_pio_data_xfer, | 414 | .data_xfer = ata_data_xfer, |
415 | 415 | ||
416 | .irq_handler = ata_interrupt, | 416 | .irq_handler = ata_interrupt, |
417 | .irq_clear = ata_bmdma_irq_clear, | 417 | .irq_clear = ata_bmdma_irq_clear, |
418 | .irq_on = ata_irq_on, | ||
419 | .irq_ack = ata_irq_ack, | ||
418 | 420 | ||
419 | .port_start = ata_port_start, | 421 | .port_start = ata_port_start, |
420 | .port_stop = ata_port_stop, | ||
421 | .host_stop = ata_host_stop | ||
422 | }; | 422 | }; |
423 | 423 | ||
424 | /* | 424 | /* |
@@ -449,14 +449,14 @@ static struct ata_port_operations ali_c2_port_ops = { | |||
449 | .qc_prep = ata_qc_prep, | 449 | .qc_prep = ata_qc_prep, |
450 | .qc_issue = ata_qc_issue_prot, | 450 | .qc_issue = ata_qc_issue_prot, |
451 | 451 | ||
452 | .data_xfer = ata_pio_data_xfer, | 452 | .data_xfer = ata_data_xfer, |
453 | 453 | ||
454 | .irq_handler = ata_interrupt, | 454 | .irq_handler = ata_interrupt, |
455 | .irq_clear = ata_bmdma_irq_clear, | 455 | .irq_clear = ata_bmdma_irq_clear, |
456 | .irq_on = ata_irq_on, | ||
457 | .irq_ack = ata_irq_ack, | ||
456 | 458 | ||
457 | .port_start = ata_port_start, | 459 | .port_start = ata_port_start, |
458 | .port_stop = ata_port_stop, | ||
459 | .host_stop = ata_host_stop | ||
460 | }; | 460 | }; |
461 | 461 | ||
462 | /* | 462 | /* |
@@ -486,14 +486,14 @@ static struct ata_port_operations ali_c5_port_ops = { | |||
486 | .qc_prep = ata_qc_prep, | 486 | .qc_prep = ata_qc_prep, |
487 | .qc_issue = ata_qc_issue_prot, | 487 | .qc_issue = ata_qc_issue_prot, |
488 | 488 | ||
489 | .data_xfer = ata_pio_data_xfer, | 489 | .data_xfer = ata_data_xfer, |
490 | 490 | ||
491 | .irq_handler = ata_interrupt, | 491 | .irq_handler = ata_interrupt, |
492 | .irq_clear = ata_bmdma_irq_clear, | 492 | .irq_clear = ata_bmdma_irq_clear, |
493 | .irq_on = ata_irq_on, | ||
494 | .irq_ack = ata_irq_ack, | ||
493 | 495 | ||
494 | .port_start = ata_port_start, | 496 | .port_start = ata_port_start, |
495 | .port_stop = ata_port_stop, | ||
496 | .host_stop = ata_host_stop | ||
497 | }; | 497 | }; |
498 | 498 | ||
499 | 499 | ||
@@ -504,7 +504,7 @@ static struct ata_port_operations ali_c5_port_ops = { | |||
504 | * Perform the setup on the device that must be done both at boot | 504 | * Perform the setup on the device that must be done both at boot |
505 | * and at resume time. | 505 | * and at resume time. |
506 | */ | 506 | */ |
507 | 507 | ||
508 | static void ali_init_chipset(struct pci_dev *pdev) | 508 | static void ali_init_chipset(struct pci_dev *pdev) |
509 | { | 509 | { |
510 | u8 rev, tmp; | 510 | u8 rev, tmp; |
@@ -655,7 +655,7 @@ static int ali_init_one(struct pci_dev *pdev, const struct pci_device_id *id) | |||
655 | port_info[0] = port_info[1] = &info_c5; | 655 | port_info[0] = port_info[1] = &info_c5; |
656 | 656 | ||
657 | ali_init_chipset(pdev); | 657 | ali_init_chipset(pdev); |
658 | 658 | ||
659 | isa_bridge = pci_get_device(PCI_VENDOR_ID_AL, PCI_DEVICE_ID_AL_M1533, NULL); | 659 | isa_bridge = pci_get_device(PCI_VENDOR_ID_AL, PCI_DEVICE_ID_AL_M1533, NULL); |
660 | if (isa_bridge && rev >= 0x20 && rev < 0xC2) { | 660 | if (isa_bridge && rev >= 0x20 && rev < 0xC2) { |
661 | /* Are we paired with a UDMA capable chip */ | 661 | /* Are we paired with a UDMA capable chip */ |