Skip to contentSkip to conversation

maple: fix to pass correct device identity to free_irq

PATCH New Yang Yingliang 1 participant 1 message Dec 13, 2021 SuperH

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 maple: fix to pass correct device identity to free_irq

free_irq() expects the same device identity that was passed to corresponding request_irq(), otherwise the IRQ is not freed.

---
 drivers/sh/maple/maple.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/sh/maple/maple.c +2 -2
index e24e220e56ee..398043a4e870 100644
@@ -870,10 +870,10 @@ static int __init maple_bus_init(void)
 	kmem_cache_destroy(maple_queue_cache);
 
 cleanup_bothirqs:
-	free_irq(HW_EVENT_VSYNC, 0);
+	free_irq(HW_EVENT_VSYNC, &maple_unsupported_device);
 
 cleanup_irq:
-	free_irq(HW_EVENT_MAPLE_DMA, 0);
+	free_irq(HW_EVENT_MAPLE_DMA, &maple_unsupported_device);
 
 cleanup_dma:
 	free_pages((unsigned long) maple_sendbuf, MAPLE_DMA_PAGES);
Signature · 1 line
2.25.1