vserver 1.9.5.x5
[linux-2.6.git] / drivers / block / paride / paride.c
index 9f9401c..1fef136 100644 (file)
@@ -46,7 +46,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 +140,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 +149,6 @@ void pi_unclaim(PIA * pi)
 #endif
 }
 
-EXPORT_SYMBOL(pi_unclaim);
-
 void pi_connect(PIA * pi)
 {
        pi_claim(pi);