leon, grcan: unregister interrupt handler at close

This commit is contained in:
Martin Aberg
2017-01-26 10:54:57 +01:00
committed by Daniel Hellstrom
parent c297060b11
commit 5d367c56cf

View File

@@ -1275,8 +1275,12 @@ int grcan_close(void *d)
FUNCDBG();
if ( pDev->started )
if ( pDev->started ) {
/* Disable interrupts */
drvmgr_interrupt_unregister(pDev->dev, 0, grcan_interrupt, pDev);
grcan_hw_stop(pDev);
pDev->started = 0;
}
grcan_hw_reset(pDev->regs);