net: dsa: mv88e6xxx: Fix unconditional irq freeing
authorAndrew Lunn <andrew@lunn.ch>
Sun, 20 Nov 2016 19:14:15 +0000 (20:14 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Nov 2016 02:16:13 +0000 (21:16 -0500)
commit8d98c8a8295d9d21cd4fd511fa5bc0e637e12d3d
tree8699565f47740f5d6edad020ec214ee734265076
parent1efb7c51feaab47e5ad00ff6e6f9684865561fb2
net: dsa: mv88e6xxx: Fix unconditional irq freeing

Trying to remove an IRQ domain that was not created results in an
Opps. Add the necessary checks that the irqs were created before
freeing them.

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