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)
commit46712644d6e72d8a66f20f51e260e1c3d1eddfeb
tree8699565f47740f5d6edad020ec214ee734265076
parenta3db3d3a52f0f159e0aa996792987acd8c14d2ad
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