Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 496cda8e authored by Cong Wang's avatar Cong Wang Committed by Cong Wang
Browse files

ata: remove the second argument of k[un]map_atomic()

parent f0dfc0b0
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -720,13 +720,13 @@ static void ata_pio_sector(struct ata_queued_cmd *qc)


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


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


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


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


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


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