usb: musb: use io{read,write}*_rep accessors
[linux-2.6-block.git] / drivers / usb / musb / musb_core.c
index 57cc9c6eaa9fcf2f3f4528a94df7e3024595f64e..f1c6c5470b92550831cbe6551cf8cb090b2d491d 100644 (file)
@@ -251,7 +251,7 @@ void musb_write_fifo(struct musb_hw_ep *hw_ep, u16 len, const u8 *src)
                /* best case is 32bit-aligned source address */
                if ((0x02 & (unsigned long) src) == 0) {
                        if (len >= 4) {
-                               writesl(fifo, src + index, len >> 2);
+                               iowrite32_rep(fifo, src + index, len >> 2);
                                index += len & ~0x03;
                        }
                        if (len & 0x02) {
@@ -260,7 +260,7 @@ void musb_write_fifo(struct musb_hw_ep *hw_ep, u16 len, const u8 *src)
                        }
                } else {
                        if (len >= 2) {
-                               writesw(fifo, src + index, len >> 1);
+                               iowrite16_rep(fifo, src + index, len >> 1);
                                index += len & ~0x01;
                        }
                }
@@ -268,7 +268,7 @@ void musb_write_fifo(struct musb_hw_ep *hw_ep, u16 len, const u8 *src)
                        musb_writeb(fifo, 0, src[index]);
        } else  {
                /* byte aligned */
-               writesb(fifo, src, len);
+               iowrite8_rep(fifo, src, len);
        }
 }
 
@@ -294,7 +294,7 @@ void musb_read_fifo(struct musb_hw_ep *hw_ep, u16 len, u8 *dst)
                /* best case is 32bit-aligned destination address */
                if ((0x02 & (unsigned long) dst) == 0) {
                        if (len >= 4) {
-                               readsl(fifo, dst, len >> 2);
+                               ioread32_rep(fifo, dst, len >> 2);
                                index = len & ~0x03;
                        }
                        if (len & 0x02) {
@@ -303,7 +303,7 @@ void musb_read_fifo(struct musb_hw_ep *hw_ep, u16 len, u8 *dst)
                        }
                } else {
                        if (len >= 2) {
-                               readsw(fifo, dst, len >> 1);
+                               ioread16_rep(fifo, dst, len >> 1);
                                index = len & ~0x01;
                        }
                }
@@ -311,7 +311,7 @@ void musb_read_fifo(struct musb_hw_ep *hw_ep, u16 len, u8 *dst)
                        dst[index] = musb_readb(fifo, 0);
        } else  {
                /* byte aligned */
-               readsb(fifo, dst, len);
+               ioread8_rep(fifo, dst, len);
        }
 }
 #endif