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/parport_atari.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/parport_atari.c')
-rw-r--r-- | drivers/parport/parport_atari.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/parport/parport_atari.c b/drivers/parport/parport_atari.c index 6ea9929b8c7f..ad4cdd256137 100644 --- a/drivers/parport/parport_atari.c +++ b/drivers/parport/parport_atari.c | |||
@@ -103,13 +103,6 @@ parport_atari_restore_state(struct parport *p, struct parport_state *s) | |||
103 | { | 103 | { |
104 | } | 104 | } |
105 | 105 | ||
106 | static irqreturn_t | ||
107 | parport_atari_interrupt(int irq, void *dev_id) | ||
108 | { | ||
109 | parport_generic_irq(irq, (struct parport *) dev_id); | ||
110 | return IRQ_HANDLED; | ||
111 | } | ||
112 | |||
113 | static void | 106 | static void |
114 | parport_atari_enable_irq(struct parport *p) | 107 | parport_atari_enable_irq(struct parport *p) |
115 | { | 108 | { |
@@ -208,7 +201,7 @@ static int __init parport_atari_init(void) | |||
208 | &parport_atari_ops); | 201 | &parport_atari_ops); |
209 | if (!p) | 202 | if (!p) |
210 | return -ENODEV; | 203 | return -ENODEV; |
211 | if (request_irq(IRQ_MFP_BUSY, parport_atari_interrupt, | 204 | if (request_irq(IRQ_MFP_BUSY, parport_irq_handler, |
212 | IRQ_TYPE_SLOW, p->name, p)) { | 205 | IRQ_TYPE_SLOW, p->name, p)) { |
213 | parport_put_port (p); | 206 | parport_put_port (p); |
214 | return -ENODEV; | 207 | return -ENODEV; |