From: Andrew Lunn Date: Sun, 25 Mar 2018 21:43:15 +0000 (+0200) Subject: net: dsa: mv88e6xxx: Call the common IRQ free code X-Git-Tag: v4.19~1326^2~109^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=71f74ae48c7fd08ffa0c447dfcea6c7fd3dfefc6;p=platform%2Fkernel%2Flinux-rpi.git net: dsa: mv88e6xxx: Call the common IRQ free code When free'ing the polled IRQs, call the common irq free code. Otherwise the interrupts are left registered, and when we come to load the driver a second time, we get an Opps. Signed-off-by: Andrew Lunn Signed-off-by: David S. Miller --- diff --git a/drivers/net/dsa/mv88e6xxx/chip.c b/drivers/net/dsa/mv88e6xxx/chip.c index 3ba7706..9a5d786 100644 --- a/drivers/net/dsa/mv88e6xxx/chip.c +++ b/drivers/net/dsa/mv88e6xxx/chip.c @@ -467,6 +467,8 @@ static int mv88e6xxx_irq_poll_setup(struct mv88e6xxx_chip *chip) static void mv88e6xxx_irq_poll_free(struct mv88e6xxx_chip *chip) { + mv88e6xxx_g1_irq_free_common(chip); + kthread_cancel_delayed_work_sync(&chip->irq_poll_work); kthread_destroy_worker(chip->kworker); }