mirror of
https://github.com/torvalds/linux.git
synced 2026-11-24 23:47:06 +00:00
net: lan966x: Make sure to release ptp interrupt
When the lan966x driver is removed make sure to remove also the ptp_irq
IRQ.
Fixes: e85a96e48e ("net: lan966x: Add support for ptp interrupts")
Signed-off-by: Horatiu Vultur <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
This commit is contained in:
committed by
Jakub Kicinski
parent
9cb7c01342
commit
d08ed85256
@@ -671,6 +671,9 @@ static void lan966x_cleanup_ports(struct lan966x *lan966x)
|
||||
disable_irq(lan966x->ana_irq);
|
||||
lan966x->ana_irq = -ENXIO;
|
||||
}
|
||||
|
||||
if (lan966x->ptp_irq)
|
||||
devm_free_irq(lan966x->dev, lan966x->ptp_irq, lan966x);
|
||||
}
|
||||
|
||||
static int lan966x_probe_port(struct lan966x *lan966x, u32 p,
|
||||
|
||||
Reference in New Issue
Block a user