]> rtime.felk.cvut.cz Git - lincan.git/blobdiff - lincan/src/msmcan.c
LinCAN driver updated to work on Real-Time Preemption enabled kernel.
[lincan.git] / lincan / src / msmcan.c
index 230e7862788327e6ee474fc92c4cff72f55ecbe7..9851b5ff5fb34a85443e89c076f06292f4861ac8 100644 (file)
@@ -13,7 +13,7 @@
 #include "../include/msmcan.h"
 #include "../include/i82527.h"
 
-static can_spinlock_t msmcan_port_lock=SPIN_LOCK_UNLOCKED;
+static CAN_DEFINE_SPINLOCK(msmcan_port_lock);
 
 /* IO_RANGE is the io-memory range that gets reserved, please adjust according
  * your hardware. Example: #define IO_RANGE 0x100 for i82527 chips or