]> rtime.felk.cvut.cz Git - lincan.git/blobdiff - lincan/src/mscan.c
Fixed typo in recently added MSCAN code
[lincan.git] / lincan / src / mscan.c
index 3456ffc12d05fde98d2d92bef607ed30bfc29be4..74c086af8405cb2dbd2e1f8f6046b6342cb34070 100644 (file)
@@ -824,9 +824,9 @@ int mscan_irq_handler(int irq, struct canchip_t *chip)
                        DEBUGTX("Buffer empty interrupt\n");
 
                        /* clear propriate TXE IRE Enabled  flag */
                        DEBUGTX("Buffer empty interrupt\n");
 
                        /* clear propriate TXE IRE Enabled  flag */
-                       can_spin_lock(mscan_prewr_lock);
+                       can_spin_lock(&mscan_prewr_lock);
                        mscan_clear_flags(chip, (irq_reg >> 8) & MSCAN_TIER_TXE, MSCAN_TIER);
                        mscan_clear_flags(chip, (irq_reg >> 8) & MSCAN_TIER_TXE, MSCAN_TIER);
-                       can_spin_unlock(mscan_prewr_lock);
+                       can_spin_unlock(&mscan_prewr_lock);
 
 
                        /* sends message */         
 
 
                        /* sends message */