#include <linux/string.h>
#include <linux/spinlock.h>
#include <linux/wait.h>
+#include <linux/sched.h> /* TASK_* */
#ifdef CONFIG_PARPORT_MODULE
#define CONFIG_PARPORT
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);
printk("paride: %s not registered\n", pr->name);
return;
}
- protocols[pr->index] = 0;
+ protocols[pr->index] = NULL;
}
EXPORT_SYMBOL(pi_unregister);