]> rtime.felk.cvut.cz Git - lincan.git/blobdiff - lincan/src/finish.c
LinCAN can be compiled in mode with RT-Linux chip worker threads now.
[lincan.git] / lincan / src / finish.c
index fdca959e807692ceddeaba8a2996e4d67d8b9076..922b4d3608077fe03dfda6a78142707b7e2566b7 100644 (file)
@@ -57,10 +57,7 @@ void canchip_done(struct chip_t *chip)
                        CANMSG("canchip_done: not registered in hostdevice\n");
        }
 
-       if((chip->flags & CHIP_IRQ_SETUP) && (chip->chip_irq>=0)) {
-               free_irq(chip->chip_irq, chip);
-               chip->flags &= ~CHIP_IRQ_SETUP;
-       }
+       can_chip_free_irq(chip);
                
        can_synchronize_irq(chip->chip_irq);