From: David van Moolenbroek Date: Sun, 6 Sep 2009 14:24:44 +0000 (+0000) Subject: cleanup: sys_irqrmpolicy does not need IRQ vector X-Git-Tag: v3.1.5~154 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/zpipe.c?a=commitdiff_plain;h=8ef6c9b063e749f956f46e3b9730f7f905abc1dd;p=minix.git cleanup: sys_irqrmpolicy does not need IRQ vector --- diff --git a/drivers/audio/framework/audio_fw.c b/drivers/audio/framework/audio_fw.c index 6dd2a1e65..cebc5f9b3 100755 --- a/drivers/audio/framework/audio_fw.c +++ b/drivers/audio/framework/audio_fw.c @@ -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); } } diff --git a/include/minix/syslib.h b/include/minix/syslib.h index 8af499dc5..8e6b4415e 100755 --- a/include/minix/syslib.h +++ b/include/minix/syslib.h @@ -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) );