X-Git-Url: http://rtime.felk.cvut.cz/gitweb/lincan.git/blobdiff_plain/d8365e7fd56ca15c05502848338017013e628a9d..2827b727d2910a3b48f9de7d67b3a67f59e256c7:/lincan/src/main.c diff --git a/lincan/src/main.c b/lincan/src/main.c index f4edb79..23bd6da 100644 --- a/lincan/src/main.c +++ b/lincan/src/main.c @@ -7,7 +7,9 @@ * Version lincan-0.2 9 Jul 2003 */ +#ifndef EXPORT_SYMTAB #define EXPORT_SYMTAB +#endif #include @@ -61,8 +63,6 @@ #include "../include/can_iortl.h" #endif /*CAN_WITH_RTL*/ -#define EXPORT_SYMTAB - can_spinlock_t canuser_manipulation_lock; /* Module parameters, some must be supplied at module loading time */ @@ -199,6 +199,7 @@ int init_module(void) } #ifdef CAN_WITH_RTL + can_spin_lock_init(&can_irq_manipulation_lock); canqueue_rtl_initialize(); res=rtl_register_rtldev(major,DEVICE_NAME,&can_fops_rtl); if (res<0) {