isdn/sc: irq handler clean
* pass card number to irq handler * use card number in irq handler to avoid looping through each adapter Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
This commit is contained in:
@@ -334,7 +334,8 @@ static int __init sc_init(void)
|
||||
*/
|
||||
sc_adapter[cinst]->interrupt = irq[b];
|
||||
if (request_irq(sc_adapter[cinst]->interrupt, interrupt_handler,
|
||||
IRQF_DISABLED, interface->id, NULL))
|
||||
IRQF_DISABLED, interface->id,
|
||||
(void *)(unsigned long) cinst))
|
||||
{
|
||||
kfree(sc_adapter[cinst]->channel);
|
||||
indicate_status(cinst, ISDN_STAT_UNLOAD, 0, NULL); /* Fix me */
|
||||
|
Reference in New Issue
Block a user