Fedora kernel-2.6.17-1.2142_FC4 patched with stable patch-2.6.17.4-vs2.0.2-rc26.diff
[linux-2.6.git] / drivers / block / paride / paride.c
index 9f9401c..ce94aa1 100644 (file)
@@ -29,6 +29,7 @@
 #include <linux/string.h>
 #include <linux/spinlock.h>
 #include <linux/wait.h>
+#include <linux/sched.h>       /* TASK_* */
 
 #ifdef CONFIG_PARPORT_MODULE
 #define CONFIG_PARPORT
@@ -46,7 +47,7 @@ MODULE_LICENSE("GPL");
 
 static struct pi_protocol *protocols[MAX_PROTOS];
 
-static spinlock_t pi_spinlock = SPIN_LOCK_UNLOCKED;
+static DEFINE_SPINLOCK(pi_spinlock);
 
 void pi_write_regr(PIA * pi, int cont, int regr, int val)
 {
@@ -140,7 +141,7 @@ static void pi_claim(PIA * pi)
 #endif
 }
 
-void pi_unclaim(PIA * pi)
+static void pi_unclaim(PIA * pi)
 {
        pi->claimed = 0;
 #ifdef CONFIG_PARPORT
@@ -149,8 +150,6 @@ void pi_unclaim(PIA * pi)
 #endif
 }
 
-EXPORT_SYMBOL(pi_unclaim);
-
 void pi_connect(PIA * pi)
 {
        pi_claim(pi);