Messages in this thread Patch in this message | | | Subject | PC Speaker in 2.1.99 - patch. | Date | Fri, 01 May 1998 04:09:32 +0200 | From | David Woodhouse <> |
| |
This patch should make the PC Speaker driver compile in 2.1.99 It needs to be applied on top of the patch-pcsp-2.1.88 in /pub/kernel of my machine (dwmw2.robinson...)
Taking a leaf out of Linus' book, I haven't tested it yet, just verified that it compiles. YMMV.
If it doesn't patch cleanly, do it by hand - it's trivial. At some point I might make a proper diff against 2.1.99, but I'll probably just wait for 2.2.0.
--- irq.c.orig Fri May 1 03:59:44 1998 +++ irq.c Fri May 1 04:00:22 1998 @@ -1180,7 +1180,7 @@ int pcsp_set_irq(int (*func)(void)) { unsigned long flags; - struct irqaction * action = irq_action[0]; + struct irqaction * action = irq_desc[0].action; pcsp_IRQ = func; if (! pcsp_IRQ || ! action) @@ -1197,7 +1197,7 @@ /* ok, change the handler */ save_flags(flags); cli(); - irq_action[0] = &pcsp_action; + irq_desc[0].action = &pcsp_action; restore_flags(flags); pcsp_old_action = action; return 0; @@ -1212,7 +1212,7 @@ save_flags(flags); cli(); - irq_action[0] = pcsp_old_action; + irq_desc[0].action = pcsp_old_action; restore_flags(flags); pcsp_IRQ = NULL; return 0;
---- ---- ---- David Woodhouse, Robinson College, CB3 9AN, England. (+44) 0976 658355 Dave@imladris.demon.co.uk http://www.imladris.demon.co.uk finger pgp@dwmw2.robinson.cam.ac.uk for PGP key.
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu
| |