On Wed, Mar 09, 2005 at 10:22:55AM +0530, Mandeep Sandhu wrote: > On Tue, 2005-03-08 at 11:48 +0100, Erik Mouw wrote: > > Each driver must request_irq() and free_irq() its own interrupt. IOW: > > if the serial driver is unloaded, the interrupt is free. Besides, > > you're supposed to call free_irq() with a pointer to your own device > > structure, not a NULL pointer. > I think NULL can be passed on to free_irq...if the irq line is not > shared. dev_id would be usefull only in case of shared interrupts (like > those of PCI devices maybe...). correct me if i'm wrong. Yes, you're right, dev_id is not required in the case of a non-shared IRQ (but it certainly doesn't hurt). Erik -- Erik Mouw J.A.K.Mouw@xxxxxxxxxxxxxx mouw@xxxxxxxxxxxx
Attachment:
signature.asc
Description: Digital signature