]> rtime.felk.cvut.cz Git - lincan.git/blobdiff - lincan/src/pcccan.c
LinCAN driver updated to work on Real-Time Preemption enabled kernel.
[lincan.git] / lincan / src / pcccan.c
index a6b3ad080eb625e2215aa83fc20defb2376861e7..b568912b10ced1697484ad1554c8b097b29bb2d9 100644 (file)
@@ -20,7 +20,7 @@
 int pcccan_irq=-1;
 unsigned long pcccan_base=0x0;
 
 int pcccan_irq=-1;
 unsigned long pcccan_base=0x0;
 
-static can_spinlock_t pcccan_port_lock=SPIN_LOCK_UNLOCKED;
+static CAN_DEFINE_SPINLOCK(pcccan_port_lock);
 
 /*
  * IO_RANGE is the io-memory range that gets reserved, please adjust according
 
 /*
  * IO_RANGE is the io-memory range that gets reserved, please adjust according