From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Bri=C3=A8re?= Date: Fri, 20 May 2011 22:05:53 -0400 Subject: Use DEFINE_SPINLOCK instead of SPIN_LOCK_UNLOCKED SPIN_LOCK_UNLOCKED() has been removed in 2.6.39. --- sys/linux/cbm_module.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/sys/linux/cbm_module.c b/sys/linux/cbm_module.c index f38e388..6b360ef 100644 --- a/sys/linux/cbm_module.c +++ b/sys/linux/cbm_module.c @@ -77,7 +77,7 @@ static char *rcsid = /* Defines needed by parallel burst-routines: */ #include /* the spinlock-system, used for parallel burst */ -#define IRQSTOPVARS unsigned long flags; spinlock_t parallel_burst_lock = SPIN_LOCK_UNLOCKED; +#define IRQSTOPVARS unsigned long flags; DEFINE_SPINLOCK(parallel_burst_lock); #define disable() spin_lock_irqsave(¶llel_burst_lock, flags) #define enable() spin_unlock_irqrestore(¶llel_burst_lock, flags) #define printf(x) printk(x) --