diff options
author | Horatiu Vultur <horatiu.vultur@microchip.com> | 2022-04-13 21:57:16 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-04-15 14:29:38 -0700 |
commit | d08ed852560eb71445547f3df7b05bf5c5c69cc4 (patch) | |
tree | 5c8f8fc5e37a520cd54fd79a82372f583125b668 | |
parent | 9cb7c013420f98fa6fd12fc6a5dc055170c108db (diff) | |
download | linux-d08ed852560eb71445547f3df7b05bf5c5c69cc4.tar.bz2 |
net: lan966x: Make sure to release ptp interrupt
When the lan966x driver is removed make sure to remove also the ptp_irq
IRQ.
Fixes: e85a96e48e3309 ("net: lan966x: Add support for ptp interrupts")
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Link: https://lore.kernel.org/r/20220413195716.3796467-1-horatiu.vultur@microchip.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
-rw-r--r-- | drivers/net/ethernet/microchip/lan966x/lan966x_main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/microchip/lan966x/lan966x_main.c b/drivers/net/ethernet/microchip/lan966x/lan966x_main.c index 958e55596b82..95830e3e2b1f 100644 --- a/drivers/net/ethernet/microchip/lan966x/lan966x_main.c +++ b/drivers/net/ethernet/microchip/lan966x/lan966x_main.c @@ -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, |