]> Zhao Yanbai Git Server - minix.git/commitdiff
cleanup: sys_irqrmpolicy does not need IRQ vector
authorDavid van Moolenbroek <david@minix3.org>
Sun, 6 Sep 2009 14:24:44 +0000 (14:24 +0000)
committerDavid van Moolenbroek <david@minix3.org>
Sun, 6 Sep 2009 14:24:44 +0000 (14:24 +0000)
drivers/audio/framework/audio_fw.c
include/minix/syslib.h

index 6dd2a1e6552f61059283a28ed7162dae0d22bfa4..cebc5f9b3a088670985039156f82620faa00ddcf 100755 (executable)
@@ -602,7 +602,7 @@ PRIVATE void msg_sig_stop(void)
                        error("Msg SIG_STOP Couldn't get IRQ");
                }
                /* remove the policy */
-               if (sys_irqrmpolicy(irq, &irq_hook_id) != OK) {
+               if (sys_irqrmpolicy(&irq_hook_id) != OK) {
                        error("%s: Could not disable IRQ\n",drv.DriverName);
                }
        }
index 8af499dc5e921a425d56ef8b46a155ca3b2cc9b1..8e6b4415ea6ce78f9b9729059f48fa86915d3b57 100755 (executable)
@@ -102,8 +102,8 @@ _PROTOTYPE( int sys_vtimer, (endpoint_t proc_nr, int which, clock_t *newval,
     sys_irqctl(IRQ_ENABLE, 0, 0, hook_id) 
 #define sys_irqsetpolicy(irq_vec, policy, hook_id) \
     sys_irqctl(IRQ_SETPOLICY, irq_vec, policy, hook_id)
-#define sys_irqrmpolicy(irq_vec, hook_id) \
-    sys_irqctl(IRQ_RMPOLICY, irq_vec, 0, hook_id)
+#define sys_irqrmpolicy(hook_id) \
+    sys_irqctl(IRQ_RMPOLICY, 0, 0, hook_id)
 _PROTOTYPE ( int sys_irqctl, (int request, int irq_vec, int policy,
     int *irq_hook_id) );