diff options
author | Jeff Garzik <jeff@garzik.org> | 2007-10-19 01:42:14 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-10-23 19:53:15 -0400 |
commit | 3f2e40df0e1d7694224c3083b0bebd129039a40a (patch) | |
tree | 3d0d8c2a9dd1f873e5638a132abc5d40c6ff583b /drivers/parport/share.c | |
parent | 01e7ae8c13bb06a2ce622ebace33bb7e28ef596c (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.c | 10 |
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 | ||
998 | irqreturn_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 | ||
1000 | EXPORT_SYMBOL(parport_claim); | 1009 | EXPORT_SYMBOL(parport_claim); |
@@ -1011,5 +1020,6 @@ EXPORT_SYMBOL(parport_get_port); | |||
1011 | EXPORT_SYMBOL(parport_put_port); | 1020 | EXPORT_SYMBOL(parport_put_port); |
1012 | EXPORT_SYMBOL(parport_find_number); | 1021 | EXPORT_SYMBOL(parport_find_number); |
1013 | EXPORT_SYMBOL(parport_find_base); | 1022 | EXPORT_SYMBOL(parport_find_base); |
1023 | EXPORT_SYMBOL(parport_irq_handler); | ||
1014 | 1024 | ||
1015 | MODULE_LICENSE("GPL"); | 1025 | MODULE_LICENSE("GPL"); |