linamh/app-emulation/opencbm/files/0.4.3_rc2/0009-Use-DEFINE_SPINLOCK-instead-of-SPIN_LOCK_UNLOCKED.patch

24 lines
1000 B
Diff
Raw Normal View History

2017-11-10 12:02:18 +01:00
From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Bri=C3=A8re?= <fbriere@fbriere.net>
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 <linux/spinlock.h> /* 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(&parallel_burst_lock, flags)
#define enable() spin_unlock_irqrestore(&parallel_burst_lock, flags)
#define printf(x) printk(x)
--