net: dsa: mv88e6xxx: Fix typos when removing g1 interrupts
authorAndrew Lunn <andrew@lunn.ch>
Sun, 20 Nov 2016 19:14:14 +0000 (20:14 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Nov 2016 02:16:13 +0000 (21:16 -0500)
Simple typos, s/g2/g1/

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c

index d6d9d66b81ce554e0918ad5685013ab38831d90a..6aa81d2d8f63b8b09cffcf4a9108c54b68233a63 100644 (file)
@@ -415,11 +415,11 @@ static void mv88e6xxx_g1_irq_free(struct mv88e6xxx_chip *chip)
        int irq, virq;
 
        for (irq = 0; irq < 16; irq++) {
-               virq = irq_find_mapping(chip->g2_irq.domain, irq);
+               virq = irq_find_mapping(chip->g1_irq.domain, irq);
                irq_dispose_mapping(virq);
        }
 
-       irq_domain_remove(chip->g2_irq.domain);
+       irq_domain_remove(chip->g1_irq.domain);
 }
 
 static int mv88e6xxx_g1_irq_setup(struct mv88e6xxx_chip *chip)