[PATCH 41/44] leon, grspw_pkt: unregister ISR on close
Daniel Hellstrom
daniel at gaisler.com
Fri Mar 3 14:57:14 UTC 2017
---
c/src/lib/libbsp/sparc/shared/spw/grspw_pkt.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/c/src/lib/libbsp/sparc/shared/spw/grspw_pkt.c b/c/src/lib/libbsp/sparc/shared/spw/grspw_pkt.c
index d3eca27..ce5b732 100644
--- a/c/src/lib/libbsp/sparc/shared/spw/grspw_pkt.c
+++ b/c/src/lib/libbsp/sparc/shared/spw/grspw_pkt.c
@@ -657,6 +657,9 @@ int grspw_close(void *d)
}
grspw_hw_stop(priv);
+ /* Uninstall Interrupt handler */
+ drvmgr_interrupt_unregister(priv->dev, 0, grspw_isr, priv);
+
/* Free descriptor table memory if allocated using malloc() */
if (priv->bd_mem_alloced) {
free((void *)priv->bd_mem_alloced);
--
2.7.4
More information about the devel
mailing list