]> nv-tegra.nvidia Code Review - linux-2.6.git/blobdiff - arch/sh/drivers/dma/dmabrg.c
sh: Mass ctrl_in/outX to __raw_read/writeX conversion.
[linux-2.6.git] / arch / sh / drivers / dma / dmabrg.c
index 5e22689c2fcfd57ced1bce69ee805334db7b483d..72622e3076136d425c8e574487332619dc910fab 100644 (file)
@@ -86,8 +86,8 @@ static irqreturn_t dmabrg_irq(int irq, void *data)
        unsigned long dcr;
        unsigned int i;
 
-       dcr = ctrl_inl(DMABRGCR);
-       ctrl_outl(dcr & ~0x00ff0003, DMABRGCR); /* ack all */
+       dcr = __raw_readl(DMABRGCR);
+       __raw_writel(dcr & ~0x00ff0003, DMABRGCR);      /* ack all */
        dcr &= dcr >> 8;        /* ignore masked */
 
        /* USB stuff, get it out of the way first */
@@ -109,17 +109,17 @@ static irqreturn_t dmabrg_irq(int irq, void *data)
 static void dmabrg_disable_irq(unsigned int dmairq)
 {
        unsigned long dcr;
-       dcr = ctrl_inl(DMABRGCR);
+       dcr = __raw_readl(DMABRGCR);
        dcr &= ~(1 << ((dmairq > 1) ? dmairq + 22 : dmairq + 8));
-       ctrl_outl(dcr, DMABRGCR);
+       __raw_writel(dcr, DMABRGCR);
 }
 
 static void dmabrg_enable_irq(unsigned int dmairq)
 {
        unsigned long dcr;
-       dcr = ctrl_inl(DMABRGCR);
+       dcr = __raw_readl(DMABRGCR);
        dcr |= (1 << ((dmairq > 1) ? dmairq + 22 : dmairq + 8));
-       ctrl_outl(dcr, DMABRGCR);
+       __raw_writel(dcr, DMABRGCR);
 }
 
 int dmabrg_request_irq(unsigned int dmairq, void(*handler)(void*),
@@ -165,13 +165,13 @@ static int __init dmabrg_init(void)
                printk(KERN_INFO "DMABRG: DMAC ch0 not reserved!\n");
 #endif
 
-       ctrl_outl(0, DMABRGCR);
-       ctrl_outl(0, DMACHCR0);
-       ctrl_outl(0x94000000, DMARSRA); /* enable DMABRG in DMAC 0 */
+       __raw_writel(0, DMABRGCR);
+       __raw_writel(0, DMACHCR0);
+       __raw_writel(0x94000000, DMARSRA);      /* enable DMABRG in DMAC 0 */
 
        /* enable DMABRG mode, enable the DMAC */
-       or = ctrl_inl(DMAOR);
-       ctrl_outl(or | DMAOR_BRG | DMAOR_DMEN, DMAOR);
+       or = __raw_readl(DMAOR);
+       __raw_writel(or | DMAOR_BRG | DMAOR_DMEN, DMAOR);
 
        ret = request_irq(DMABRGI0, dmabrg_irq, IRQF_DISABLED,
                        "DMABRG USB address error", NULL);