]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
at91_ide: use readsw()/writesw() directly
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Fri, 27 Mar 2009 11:46:24 +0000 (12:46 +0100)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Fri, 27 Mar 2009 11:46:24 +0000 (12:46 +0100)
Use readsw()/writesw() directly intead of __ide_mm_{in,out}sw() macros.

Cc: Stanislaw Gruszka <stf_xl@wp.pl>
Cc: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/at91_ide.c

index 1bb50f46388d64c97c1ce4288bc41e0cfff9df99..4bd46d2d6b640725c561c1ecb5376e4e1e57f44e 100644 (file)
@@ -156,7 +156,7 @@ static void at91_ide_input_data(ide_drive_t *drive, struct request *rq,
        len++;
 
        enter_16bit(chipselect, mode);
-       __ide_mm_insw((void __iomem *) io_ports->data_addr, buf, len / 2);
+       readsw((void __iomem *)io_ports->data_addr, buf, len / 2);
        leave_16bit(chipselect, mode);
 }
 
@@ -171,7 +171,7 @@ static void at91_ide_output_data(ide_drive_t *drive, struct request *rq,
        pdbg("cs %u buf %p len %d\n", chipselect,  buf, len);
 
        enter_16bit(chipselect, mode);
-       __ide_mm_outsw((void __iomem *) io_ports->data_addr, buf, len / 2);
+       writesw((void __iomem *)io_ports->data_addr, buf, len / 2);
        leave_16bit(chipselect, mode);
 }