X-Git-Url: http://rtime.felk.cvut.cz/gitweb/lincan.git/blobdiff_plain/76d3b76ac7a3757fd794a688888c0c21db6c284a..32cde89b361c7afb67125976c3816e12633b1d4a:/lincan/src/smartcan.c diff --git a/lincan/src/smartcan.c b/lincan/src/smartcan.c index eddd13d..a7a990d 100644 --- a/lincan/src/smartcan.c +++ b/lincan/src/smartcan.c @@ -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) {