On Sun, Jul 07, 2002 at 10:20:16AM -0400, Douglas Gilbert wrote:
> --- linux/drivers/input/serio/i8042.c Sat Jul 6 08:57:35 2002
> +++ linux/drivers/input/serio/i8042.c2525fix Sun Jul 7 09:52:50 2002
> @@ -269,8 +269,11 @@
> */
>
> if (request_irq(values->irq, i8042_interrupt, 0, "i8042", NULL)) {
> - printk(KERN_ERR "i8042.c: Can't get irq %d for %s\n", values->irq, values->name);
> - return -1;
> + free_irq(values->irq, NULL);
> + if (request_irq(values->irq, i8042_interrupt, 0, "i8042", NULL)) {
> + printk(KERN_ERR "i8042.c: Can't get irq %d for %s\n", values->irq, values->name);
> + return -1;
> + }
> }
>
> /*
Hmm, interesting concept. "If someone else is using my resource, I'll
free it for them, and re-claim it". It sounds very much like a hack
rather than a fix to me.
I'd guess the real solution would be to stop pc_keyb being initialised
when you're trying to use i8042.c. Vojtech?
-- Russell King (rmk@arm.linux.org.uk) The developer of ARM Linux http://www.arm.linux.org.uk/personal/aboutme.html- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Sun Jul 07 2002 - 22:00:18 EST