Commit e4de81f
committed
can: m_can: m_can_close(): don't call free_irq() for IRQ-less devices
In commit b382380 ("can: m_can: Add hrtimer to generate software
interrupt") support for IRQ-less devices was added. Instead of an
interrupt, the interrupt routine is called by a hrtimer-based polling
loop.
That patch forgot to change free_irq() to be only called for devices
with IRQs. Fix this, by calling free_irq() conditionally only if an
IRQ is available for the device (and thus has been requested
previously).
Fixes: b382380 ("can: m_can: Add hrtimer to generate software interrupt")
Reviewed-by: Simon Horman <[email protected]>
Reviewed-by: Markus Schneider-Pargmann <[email protected]>
Link: https://patch.msgid.link/[email protected]
Cc: <[email protected]> # v6.6+
Signed-off-by: Marc Kleine-Budde <[email protected]>1 parent 7b22846 commit e4de81f
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1765 | 1765 | | |
1766 | 1766 | | |
1767 | 1767 | | |
1768 | | - | |
| 1768 | + | |
| 1769 | + | |
1769 | 1770 | | |
1770 | 1771 | | |
1771 | 1772 | | |
| |||
0 commit comments