]> git.karo-electronics.de Git - linux-beck.git/commit
net: dsa: mv88e6xxx: Fix mv88e6xxx_g1_irq_free() interrupt count
authorAndreas Färber <afaerber@suse.de>
Sun, 27 Nov 2016 22:26:28 +0000 (23:26 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Nov 2016 20:59:40 +0000 (15:59 -0500)
commit5edef2f288bcfb8c4d72105ea5b09a760341a946
tree84a88708fc9c00f5a324dd644f58796dae52b0e9
parent33362fc2da18068bc99b35ccd942112b928dfc07
net: dsa: mv88e6xxx: Fix mv88e6xxx_g1_irq_free() interrupt count

mv88e6xxx_g1_irq_setup() sets up chip->g1_irq.nirqs interrupt mappings,
so free the same amount. This will be 8 or 9 in practice, less than 16.

Fixes: dc30c35be720 ("net: dsa: mv88e6xxx: Implement interrupt support.")
Cc: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c