forked from Imagelibrary/rtems
leon, grcan: unregister interrupt handler at close
This commit is contained in:
committed by
Daniel Hellstrom
parent
c297060b11
commit
5d367c56cf
@@ -1275,8 +1275,12 @@ int grcan_close(void *d)
|
|||||||
|
|
||||||
FUNCDBG();
|
FUNCDBG();
|
||||||
|
|
||||||
if ( pDev->started )
|
if ( pDev->started ) {
|
||||||
|
/* Disable interrupts */
|
||||||
|
drvmgr_interrupt_unregister(pDev->dev, 0, grcan_interrupt, pDev);
|
||||||
grcan_hw_stop(pDev);
|
grcan_hw_stop(pDev);
|
||||||
|
pDev->started = 0;
|
||||||
|
}
|
||||||
|
|
||||||
grcan_hw_reset(pDev->regs);
|
grcan_hw_reset(pDev->regs);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user