X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fnet%2Firda%2Firport.c;h=44efd49bf4a9fd8f13e38b1aea9e073d31d065b6;hb=93fdf10d4c28edaa1b9f80e7f9c3002359186d00;hp=3d016a498e1d928418c1bb02855e37e50cbba49d;hpb=b4558ea93d66a43f7990d26f145fd4c54a01c9bf;p=linux-2.6 diff --git a/drivers/net/irda/irport.c b/drivers/net/irda/irport.c index 3d016a498e..44efd49bf4 100644 --- a/drivers/net/irda/irport.c +++ b/drivers/net/irda/irport.c @@ -284,19 +284,6 @@ static void irport_start(struct irport_cb *self) outb(UART_IER_RLSI | UART_IER_RDI |UART_IER_THRI, iobase+UART_IER); } -/* - * Function irport_probe (void) - * - * Start IO port - * - */ -int irport_probe(int iobase) -{ - IRDA_DEBUG(4, "%s(), iobase=%#x\n", __FUNCTION__, iobase); - - return 0; -} - /* * Function irport_get_fcr (speed) * @@ -382,7 +369,7 @@ static void irport_change_speed(void *priv, __u32 speed) * we cannot use schedule_timeout() when we are in interrupt context * */ -int __irport_change_speed(struct irda_task *task) +static int __irport_change_speed(struct irda_task *task) { struct irport_cb *self; __u32 speed = (__u32) task->param; @@ -399,7 +386,7 @@ int __irport_change_speed(struct irda_task *task) /* Locking notes : this function may be called from irq context with * spinlock, via irport_write_wakeup(), or from non-interrupt without * spinlock (from the task timer). Yuck ! - * This is ugly, and unsafe is the spinlock is not already aquired. + * This is ugly, and unsafe is the spinlock is not already acquired. * This will be fixed when irda-task get rewritten. * Jean II */ if (!spin_is_locked(&self->lock)) { @@ -1131,9 +1118,9 @@ static void __exit irport_cleanup(void) } } -MODULE_PARM(io, "1-4i"); +module_param_array(io, int, NULL, 0); MODULE_PARM_DESC(io, "Base I/O addresses"); -MODULE_PARM(irq, "1-4i"); +module_param_array(irq, int, NULL, 0); MODULE_PARM_DESC(irq, "IRQ lines"); MODULE_AUTHOR("Dag Brattli ");