diff options
-rw-r--r-- | drivers/ata/libata-sff.c | 6 | ||||
-rw-r--r-- | drivers/ata/pata_pcmcia.c | 2 | ||||
-rw-r--r-- | include/linux/libata.h | 3 |
3 files changed, 5 insertions, 6 deletions
diff --git a/drivers/ata/libata-sff.c b/drivers/ata/libata-sff.c index 4a3d1f214457..6a103b310cac 100644 --- a/drivers/ata/libata-sff.c +++ b/drivers/ata/libata-sff.c | |||
@@ -53,7 +53,6 @@ const struct ata_port_operations ata_sff_port_ops = { | |||
53 | .softreset = ata_sff_softreset, | 53 | .softreset = ata_sff_softreset, |
54 | .hardreset = sata_sff_hardreset, | 54 | .hardreset = sata_sff_hardreset, |
55 | .postreset = ata_sff_postreset, | 55 | .postreset = ata_sff_postreset, |
56 | .drain_fifo = ata_sff_drain_fifo, | ||
57 | .error_handler = ata_sff_error_handler, | 56 | .error_handler = ata_sff_error_handler, |
58 | .post_internal_cmd = ata_sff_post_internal_cmd, | 57 | .post_internal_cmd = ata_sff_post_internal_cmd, |
59 | 58 | ||
@@ -64,6 +63,7 @@ const struct ata_port_operations ata_sff_port_ops = { | |||
64 | .sff_exec_command = ata_sff_exec_command, | 63 | .sff_exec_command = ata_sff_exec_command, |
65 | .sff_data_xfer = ata_sff_data_xfer, | 64 | .sff_data_xfer = ata_sff_data_xfer, |
66 | .sff_irq_clear = ata_sff_irq_clear, | 65 | .sff_irq_clear = ata_sff_irq_clear, |
66 | .sff_drain_fifo = ata_sff_drain_fifo, | ||
67 | 67 | ||
68 | .lost_interrupt = ata_sff_lost_interrupt, | 68 | .lost_interrupt = ata_sff_lost_interrupt, |
69 | }; | 69 | }; |
@@ -2398,8 +2398,8 @@ void ata_sff_error_handler(struct ata_port *ap) | |||
2398 | * if we touch the data port post reset. Pass qc in case anyone wants | 2398 | * if we touch the data port post reset. Pass qc in case anyone wants |
2399 | * to do different PIO/DMA recovery or has per command fixups | 2399 | * to do different PIO/DMA recovery or has per command fixups |
2400 | */ | 2400 | */ |
2401 | if (ap->ops->drain_fifo) | 2401 | if (ap->ops->sff_drain_fifo) |
2402 | ap->ops->drain_fifo(qc); | 2402 | ap->ops->sff_drain_fifo(qc); |
2403 | 2403 | ||
2404 | spin_unlock_irqrestore(ap->lock, flags); | 2404 | spin_unlock_irqrestore(ap->lock, flags); |
2405 | 2405 | ||
diff --git a/drivers/ata/pata_pcmcia.c b/drivers/ata/pata_pcmcia.c index d94b8f0bd743..ef374388c0f6 100644 --- a/drivers/ata/pata_pcmcia.c +++ b/drivers/ata/pata_pcmcia.c | |||
@@ -175,7 +175,7 @@ static struct ata_port_operations pcmcia_8bit_port_ops = { | |||
175 | .sff_data_xfer = ata_data_xfer_8bit, | 175 | .sff_data_xfer = ata_data_xfer_8bit, |
176 | .cable_detect = ata_cable_40wire, | 176 | .cable_detect = ata_cable_40wire, |
177 | .set_mode = pcmcia_set_mode_8bit, | 177 | .set_mode = pcmcia_set_mode_8bit, |
178 | .drain_fifo = pcmcia_8bit_drain_fifo, | 178 | .sff_drain_fifo = pcmcia_8bit_drain_fifo, |
179 | }; | 179 | }; |
180 | 180 | ||
181 | 181 | ||
diff --git a/include/linux/libata.h b/include/linux/libata.h index 45a547e42d47..19f716edd3be 100644 --- a/include/linux/libata.h +++ b/include/linux/libata.h | |||
@@ -856,13 +856,12 @@ struct ata_port_operations { | |||
856 | void (*sff_irq_on)(struct ata_port *); | 856 | void (*sff_irq_on)(struct ata_port *); |
857 | bool (*sff_irq_check)(struct ata_port *); | 857 | bool (*sff_irq_check)(struct ata_port *); |
858 | void (*sff_irq_clear)(struct ata_port *); | 858 | void (*sff_irq_clear)(struct ata_port *); |
859 | void (*sff_drain_fifo)(struct ata_queued_cmd *qc); | ||
859 | 860 | ||
860 | void (*bmdma_setup)(struct ata_queued_cmd *qc); | 861 | void (*bmdma_setup)(struct ata_queued_cmd *qc); |
861 | void (*bmdma_start)(struct ata_queued_cmd *qc); | 862 | void (*bmdma_start)(struct ata_queued_cmd *qc); |
862 | void (*bmdma_stop)(struct ata_queued_cmd *qc); | 863 | void (*bmdma_stop)(struct ata_queued_cmd *qc); |
863 | u8 (*bmdma_status)(struct ata_port *ap); | 864 | u8 (*bmdma_status)(struct ata_port *ap); |
864 | |||
865 | void (*drain_fifo)(struct ata_queued_cmd *qc); | ||
866 | #endif /* CONFIG_ATA_SFF */ | 865 | #endif /* CONFIG_ATA_SFF */ |
867 | 866 | ||
868 | ssize_t (*em_show)(struct ata_port *ap, char *buf); | 867 | ssize_t (*em_show)(struct ata_port *ap, char *buf); |