]> rtime.felk.cvut.cz Git - lincan.git/blobdiff - lincan/src/smartcan.c
LinCAN driver updated to work on Real-Time Preemption enabled kernel.
[lincan.git] / lincan / src / smartcan.c
index eddd13dd30f4f718f082d6bf4d8c31062003f5c5..a7a990d5a8bcbcae6776a239fe2fe39cadb57d56 100644 (file)
@@ -16,7 +16,7 @@
 int smartcan_irq=-1;
 unsigned long smartcan_base=0x0;
 
-static can_spinlock_t smartcan_port_lock=SPIN_LOCK_UNLOCKED;
+static CAN_DEFINE_SPINLOCK(smartcan_port_lock);
 
 int smartcan_request_io(struct candevice_t *candev)
 {