Skip to content

Commit

Permalink
ata: remove the second argument of k[un]map_atomic()
Browse files Browse the repository at this point in the history
Acked-by: Jeff Garzik <jgarzik@redhat.com>
Signed-off-by: Cong Wang <amwang@redhat.com>
  • Loading branch information
Cong Wang authored and Cong Wang committed Mar 20, 2012
1 parent f0dfc0b commit 496cda8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/ata/libata-sff.c
Original file line number Diff line number Diff line change
Expand Up @@ -720,13 +720,13 @@ static void ata_pio_sector(struct ata_queued_cmd *qc)

/* FIXME: use a bounce buffer */
local_irq_save(flags);
buf = kmap_atomic(page, KM_IRQ0);
buf = kmap_atomic(page);

/* do the actual data transfer */
ap->ops->sff_data_xfer(qc->dev, buf + offset, qc->sect_size,
do_write);

kunmap_atomic(buf, KM_IRQ0);
kunmap_atomic(buf);
local_irq_restore(flags);
} else {
buf = page_address(page);
Expand Down Expand Up @@ -865,13 +865,13 @@ static int __atapi_pio_bytes(struct ata_queued_cmd *qc, unsigned int bytes)

/* FIXME: use bounce buffer */
local_irq_save(flags);
buf = kmap_atomic(page, KM_IRQ0);
buf = kmap_atomic(page);

/* do the actual data transfer */
consumed = ap->ops->sff_data_xfer(dev, buf + offset,
count, rw);

kunmap_atomic(buf, KM_IRQ0);
kunmap_atomic(buf);
local_irq_restore(flags);
} else {
buf = page_address(page);
Expand Down

0 comments on commit 496cda8

Please sign in to comment.