aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata
diff options
context:
space:
mode:
authorPhil Sutter <n0-1@freewrt.org>2009-01-27 08:35:51 -0500
committerJeff Garzik <jgarzik@redhat.com>2009-03-24 22:02:39 -0400
commitbff9ad3c4c8fff340854d3912196ed470f94602c (patch)
tree334d8f33de56913531a8ac81a636079aa98f98d9 /drivers/ata
parent96b34ce7cafa0888580698d199b9fac6ad9f9a2e (diff)
pata-rb532-cf: use ata_sff_exec_command()
The only difference between rb532_pata_exec_command() and ata_sff_exec_command() is added debugging output, so it can be dropped and the standard op used instead. Signed-off-by: Phil Sutter <n0-1@freewrt.org> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata')
-rw-r--r--drivers/ata/pata_rb532_cf.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/ata/pata_rb532_cf.c b/drivers/ata/pata_rb532_cf.c
index 6fe660b27dc..9d61ce51e4e 100644
--- a/drivers/ata/pata_rb532_cf.c
+++ b/drivers/ata/pata_rb532_cf.c
@@ -54,13 +54,6 @@ struct rb532_cf_info {
54 54
55/* ------------------------------------------------------------------------ */ 55/* ------------------------------------------------------------------------ */
56 56
57static void rb532_pata_exec_command(struct ata_port *ap,
58 const struct ata_taskfile *tf)
59{
60 writeb(tf->command, ap->ioaddr.command_addr);
61 ata_sff_pause(ap);
62}
63
64static unsigned int rb532_pata_data_xfer(struct ata_device *adev, unsigned char *buf, 57static unsigned int rb532_pata_data_xfer(struct ata_device *adev, unsigned char *buf,
65 unsigned int buflen, int write_data) 58 unsigned int buflen, int write_data)
66{ 59{
@@ -112,7 +105,6 @@ static irqreturn_t rb532_pata_irq_handler(int irq, void *dev_instance)
112 105
113static struct ata_port_operations rb532_pata_port_ops = { 106static struct ata_port_operations rb532_pata_port_ops = {
114 .inherits = &ata_sff_port_ops, 107 .inherits = &ata_sff_port_ops,
115 .sff_exec_command = rb532_pata_exec_command,
116 .sff_data_xfer = rb532_pata_data_xfer, 108 .sff_data_xfer = rb532_pata_data_xfer,
117 .freeze = rb532_pata_freeze, 109 .freeze = rb532_pata_freeze,
118 .thaw = rb532_pata_thaw, 110 .thaw = rb532_pata_thaw,