]> asedeno.scripts.mit.edu Git - linux.git/commit
net: dsa: mv88e6xxx: Free ATU/VTU irq only when there is chip irq
authorAndrew Lunn <andrew@lunn.ch>
Thu, 18 Jan 2018 16:42:50 +0000 (17:42 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Jan 2018 20:57:02 +0000 (15:57 -0500)
commitae14cafc933b977f368ea7510d3b50b9ad5e1fc6
tree714c3c25647f916423b042953c2d59e96dc78de1
parent9b662a3ec21221f2500e8009c849abf9c0136b99
net: dsa: mv88e6xxx: Free ATU/VTU irq only when there is chip irq

We only register the ATU and VTU irq when we have a chip level IRQ.
In the error path, we should only attempt to remove the ATU and VTU
irq if we also have a chip level IRQ.

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