Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ae14cafc authored by Andrew Lunn's avatar Andrew Lunn Committed by David S. Miller
Browse files

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: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9b662a3e
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -3999,8 +3999,10 @@ static int mv88e6xxx_probe(struct mdio_device *mdiodev)
out_mdio:
	mv88e6xxx_mdios_unregister(chip);
out_g1_vtu_prob_irq:
	if (chip->irq > 0)
		mv88e6xxx_g1_vtu_prob_irq_free(chip);
out_g1_atu_prob_irq:
	if (chip->irq > 0)
		mv88e6xxx_g1_atu_prob_irq_free(chip);
out_g2_irq:
	if (chip->info->g2_irqs > 0 && chip->irq > 0)