[PARPORT] Consolidate code copies into a single generic irq handler
Several arches used the exact same code for their parport irq handling. Make that code generic, in parport_irq_handler(). Also, s/__inline__/inline/ in include/linux/parport.h. Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
This commit is contained in:
@@ -995,6 +995,15 @@ void parport_release(struct pardevice *dev)
|
||||
}
|
||||
}
|
||||
|
||||
irqreturn_t parport_irq_handler(int irq, void *dev_id)
|
||||
{
|
||||
struct parport *port = dev_id;
|
||||
|
||||
parport_generic_irq(irq, port);
|
||||
|
||||
return IRQ_HANDLED;
|
||||
}
|
||||
|
||||
/* Exported symbols for modules. */
|
||||
|
||||
EXPORT_SYMBOL(parport_claim);
|
||||
@@ -1011,5 +1020,6 @@ EXPORT_SYMBOL(parport_get_port);
|
||||
EXPORT_SYMBOL(parport_put_port);
|
||||
EXPORT_SYMBOL(parport_find_number);
|
||||
EXPORT_SYMBOL(parport_find_base);
|
||||
EXPORT_SYMBOL(parport_irq_handler);
|
||||
|
||||
MODULE_LICENSE("GPL");
|
||||
|
Reference in New Issue
Block a user