From 82f973442d7a7fe4b08b86aeccd11ac33ecf01d1 Mon Sep 17 00:00:00 2001 From: Gerald Van Baren Date: Tue, 25 Oct 2011 22:17:17 -0400 Subject: [PATCH] Fix deprecated/removed spinlock declaration Signed-off-by: Gerald Van Baren --- backfire.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/backfire.c b/backfire.c index aaf9c4a..0e9a0df 100644 --- a/backfire.c +++ b/backfire.c @@ -24,7 +24,6 @@ #include #include #include -#include #include #include #include @@ -36,7 +35,7 @@ #define BACKFIRE_MINOR MISC_DYNAMIC_MINOR -static spinlock_t backfire_state_lock = SPIN_LOCK_UNLOCKED; +static DEFINE_SPINLOCK(backfire_state_lock); static int backfire_open_cnt; /* #times opened */ static int backfire_open_mode; /* special open modes */ static struct timeval sendtime; /* when the most recent signal was sent */ -- 1.7.5.4