]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ata: remove the second argument of k[un]map_atomic()
authorCong Wang <amwang@redhat.com>
Fri, 25 Nov 2011 15:14:18 +0000 (23:14 +0800)
committerCong Wang <amwang@redhat.com>
Wed, 7 Dec 2011 09:05:11 +0000 (17:05 +0800)
Acked-by: Jeff Garzik <jgarzik@redhat.com>
Signed-off-by: Cong Wang <amwang@redhat.com>
drivers/ata/libata-sff.c

index 4cadfa28f940450ee2f5a890af44e34ad583e921..8469cb559680d6d5d28d8b4207b50dd16b27ae2c 100644 (file)
@@ -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);
@@ -865,13 +865,13 @@ next_sg:
 
                /* 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);