diff options
author | Tejun Heo <tj@kernel.org> | 2010-05-10 15:41:36 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2010-05-19 13:35:44 -0400 |
commit | 8244cd05979ef924787aa70fd80304f1773976a1 (patch) | |
tree | 1e6f2434807eb3adbc097b3f4d7a4240237bc105 /drivers/ata/libata-sff.c | |
parent | 270390e1ae1818b111543b8bfffa08095d73c1a5 (diff) |
libata-sff: rename ap->ops->drain_fifo() to sff_drain_fifo()
->drain_fifo() is SFF specific. Rename and relocate it.
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata/libata-sff.c')
-rw-r--r-- | drivers/ata/libata-sff.c | 6 |
1 files changed, 3 insertions, 3 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 | ||