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)
{
#endif
}
-void pi_unclaim(PIA * pi)
+static void pi_unclaim(PIA * pi)
{
pi->claimed = 0;
#ifdef CONFIG_PARPORT
#endif
}
-EXPORT_SYMBOL(pi_unclaim);
-
void pi_connect(PIA * pi)
{
pi_claim(pi);