]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - arch/sh/boards/mach-se/7343/irq.c
sh: Mass ctrl_in/outX to __raw_read/writeX conversion.
[mirror_ubuntu-zesty-kernel.git] / arch / sh / boards / mach-se / 7343 / irq.c
index c60fd13608d06725c676e24df966b448f7a5dd02..d4305c26e9f71e69f4cd643bd18b4ab7c20a5efd 100644 (file)
@@ -21,13 +21,13 @@ unsigned int se7343_fpga_irq[SE7343_FPGA_IRQ_NR] = { 0, };
 static void disable_se7343_irq(unsigned int irq)
 {
        unsigned int bit = (unsigned int)get_irq_chip_data(irq);
-       ctrl_outw(ctrl_inw(PA_CPLD_IMSK) | 1 << bit, PA_CPLD_IMSK);
+       __raw_writew(__raw_readw(PA_CPLD_IMSK) | 1 << bit, PA_CPLD_IMSK);
 }
 
 static void enable_se7343_irq(unsigned int irq)
 {
        unsigned int bit = (unsigned int)get_irq_chip_data(irq);
-       ctrl_outw(ctrl_inw(PA_CPLD_IMSK) & ~(1 << bit), PA_CPLD_IMSK);
+       __raw_writew(__raw_readw(PA_CPLD_IMSK) & ~(1 << bit), PA_CPLD_IMSK);
 }
 
 static struct irq_chip se7343_irq_chip __read_mostly = {
@@ -39,7 +39,7 @@ static struct irq_chip se7343_irq_chip __read_mostly = {
 
 static void se7343_irq_demux(unsigned int irq, struct irq_desc *desc)
 {
-       unsigned short intv = ctrl_inw(PA_CPLD_ST);
+       unsigned short intv = __raw_readw(PA_CPLD_ST);
        unsigned int ext_irq = 0;
 
        intv &= (1 << SE7343_FPGA_IRQ_NR) - 1;
@@ -59,8 +59,8 @@ void __init init_7343se_IRQ(void)
 {
        int i, irq;
 
-       ctrl_outw(0, PA_CPLD_IMSK);     /* disable all irqs */
-       ctrl_outw(0x2000, 0xb03fffec);  /* mrshpc irq enable */
+       __raw_writew(0, PA_CPLD_IMSK);  /* disable all irqs */
+       __raw_writew(0x2000, 0xb03fffec);       /* mrshpc irq enable */
 
        for (i = 0; i < SE7343_FPGA_IRQ_NR; i++) {
                irq = create_irq();