net: dsa: mv88e6xxx: Fix cleanup on error for g1 interrupt setup
authorAndrew Lunn <andrew@lunn.ch>
Sun, 20 Nov 2016 19:14:17 +0000 (20:14 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Nov 2016 02:16:13 +0000 (21:16 -0500)
commit3dd0ef05f74693e55549ed790e350af5a392234f
tree5f78287c22701b040ad25a36c5df96aef4d92f4a
parent3460a5770ce97d7caeb4b11766c7bb2d74d0d29c
net: dsa: mv88e6xxx: Fix cleanup on error for g1 interrupt setup

On error, remask the interrupts, release all maps, and remove the
domain. This cannot be done using the mv88e6xxx_g1_irq_free() because
some of these actions are not idempotent.

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