aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/parport/share.c
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2007-10-19 01:42:14 -0400
committerJeff Garzik <jeff@garzik.org>2007-10-23 19:53:15 -0400
commit3f2e40df0e1d7694224c3083b0bebd129039a40a (patch)
tree3d0d8c2a9dd1f873e5638a132abc5d40c6ff583b /drivers/parport/share.c
parent01e7ae8c13bb06a2ce622ebace33bb7e28ef596c (diff)
[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>
Diffstat (limited to 'drivers/parport/share.c')
-rw-r--r--drivers/parport/share.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/parport/share.c b/drivers/parport/share.c
index cd66442acfee..414c52a5883a 100644
--- a/drivers/parport/share.c
+++ b/drivers/parport/share.c
@@ -995,6 +995,15 @@ void parport_release(struct pardevice *dev)
995 } 995 }
996} 996}
997 997
998irqreturn_t parport_irq_handler(int irq, void *dev_id)
999{
1000 struct parport *port = dev_id;
1001
1002 parport_generic_irq(irq, port);
1003
1004 return IRQ_HANDLED;
1005}
1006
998/* Exported symbols for modules. */ 1007/* Exported symbols for modules. */
999 1008
1000EXPORT_SYMBOL(parport_claim); 1009EXPORT_SYMBOL(parport_claim);
@@ -1011,5 +1020,6 @@ EXPORT_SYMBOL(parport_get_port);
1011EXPORT_SYMBOL(parport_put_port); 1020EXPORT_SYMBOL(parport_put_port);
1012EXPORT_SYMBOL(parport_find_number); 1021EXPORT_SYMBOL(parport_find_number);
1013EXPORT_SYMBOL(parport_find_base); 1022EXPORT_SYMBOL(parport_find_base);
1023EXPORT_SYMBOL(parport_irq_handler);
1014 1024
1015MODULE_LICENSE("GPL"); 1025MODULE_LICENSE("GPL");