Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 133579
b: refs/heads/master
c: 180bd14
h: refs/heads/master
i:
  133577: 488500f
  133575: d259c47
v: v3
  • Loading branch information
Phil Sutter authored and Jeff Garzik committed Mar 25, 2009
1 parent c2c70dc commit 0977b78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 21 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bff9ad3c4c8fff340854d3912196ed470f94602c
refs/heads/master: 180bd147f18316d92bd5f59aebc9932cabc03edd
21 changes: 1 addition & 20 deletions trunk/drivers/ata/pata_rb532_cf.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,25 +54,6 @@ struct rb532_cf_info {

/* ------------------------------------------------------------------------ */

static unsigned int rb532_pata_data_xfer(struct ata_device *adev, unsigned char *buf,
unsigned int buflen, int write_data)
{
struct ata_port *ap = adev->link->ap;
void __iomem *ioaddr = ap->ioaddr.data_addr;
int retlen = buflen;

if (write_data) {
for (; buflen > 0; buflen--, buf++)
writeb(*buf, ioaddr);
} else {
for (; buflen > 0; buflen--, buf++)
*buf = readb(ioaddr);
}

ata_sff_pause(ap);
return retlen;
}

static void rb532_pata_freeze(struct ata_port *ap)
{
struct rb532_cf_info *info = ap->host->private_data;
Expand Down Expand Up @@ -105,7 +86,7 @@ static irqreturn_t rb532_pata_irq_handler(int irq, void *dev_instance)

static struct ata_port_operations rb532_pata_port_ops = {
.inherits = &ata_sff_port_ops,
.sff_data_xfer = rb532_pata_data_xfer,
.sff_data_xfer = ata_sff_data_xfer32,
.freeze = rb532_pata_freeze,
.thaw = rb532_pata_thaw,
};
Expand Down

0 comments on commit 0977b78

Please sign in to comment.