diff options
author | Jeff Garzik <jeff@garzik.org> | 2007-10-19 02:54:26 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-10-23 19:53:16 -0400 |
commit | 5712cb3d81566893c3b14e24075cf48ec5c35d00 (patch) | |
tree | 8258fb24a0c5130e8c0cad16d2d9395941be3ed7 /drivers/parport | |
parent | f230d1010ad0dcd71d9ca8ea6864afac49c5aa9b (diff) |
[PARPORT] Remove unused 'irq' argument from parport irq functions
None of the drivers with a struct pardevice's ->irq_func() hook ever
used the 'irq' argument passed to it, so remove it.
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/parport')
-rw-r--r-- | drivers/parport/daisy.c | 13 | ||||
-rw-r--r-- | drivers/parport/probe.c | 3 | ||||
-rw-r--r-- | drivers/parport/share.c | 2 |
3 files changed, 4 insertions, 14 deletions
diff --git a/drivers/parport/daisy.c b/drivers/parport/daisy.c index 5bbff2028f8f..3c8f06c3a5a0 100644 --- a/drivers/parport/daisy.c +++ b/drivers/parport/daisy.c | |||
@@ -199,11 +199,6 @@ void parport_daisy_fini(struct parport *port) | |||
199 | * parport_open - find a device by canonical device number | 199 | * parport_open - find a device by canonical device number |
200 | * @devnum: canonical device number | 200 | * @devnum: canonical device number |
201 | * @name: name to associate with the device | 201 | * @name: name to associate with the device |
202 | * @pf: preemption callback | ||
203 | * @kf: kick callback | ||
204 | * @irqf: interrupt handler | ||
205 | * @flags: registration flags | ||
206 | * @handle: driver data | ||
207 | * | 202 | * |
208 | * This function is similar to parport_register_device(), except | 203 | * This function is similar to parport_register_device(), except |
209 | * that it locates a device by its number rather than by the port | 204 | * that it locates a device by its number rather than by the port |
@@ -214,10 +209,7 @@ void parport_daisy_fini(struct parport *port) | |||
214 | * for parport_register_device(). | 209 | * for parport_register_device(). |
215 | **/ | 210 | **/ |
216 | 211 | ||
217 | struct pardevice *parport_open(int devnum, const char *name, | 212 | struct pardevice *parport_open(int devnum, const char *name) |
218 | int (*pf) (void *), void (*kf) (void *), | ||
219 | void (*irqf) (int, void *), | ||
220 | int flags, void *handle) | ||
221 | { | 213 | { |
222 | struct daisydev *p = topology; | 214 | struct daisydev *p = topology; |
223 | struct parport *port; | 215 | struct parport *port; |
@@ -237,8 +229,7 @@ struct pardevice *parport_open(int devnum, const char *name, | |||
237 | port = parport_get_port(p->port); | 229 | port = parport_get_port(p->port); |
238 | spin_unlock(&topology_lock); | 230 | spin_unlock(&topology_lock); |
239 | 231 | ||
240 | dev = parport_register_device(port, name, pf, kf, | 232 | dev = parport_register_device(port, name, NULL, NULL, NULL, 0, NULL); |
241 | irqf, flags, handle); | ||
242 | parport_put_port(port); | 233 | parport_put_port(port); |
243 | if (!dev) | 234 | if (!dev) |
244 | return NULL; | 235 | return NULL; |
diff --git a/drivers/parport/probe.c b/drivers/parport/probe.c index ea83b70e0de2..853a15f44f88 100644 --- a/drivers/parport/probe.c +++ b/drivers/parport/probe.c | |||
@@ -255,8 +255,7 @@ static ssize_t parport_read_device_id (struct parport *port, char *buffer, | |||
255 | ssize_t parport_device_id (int devnum, char *buffer, size_t count) | 255 | ssize_t parport_device_id (int devnum, char *buffer, size_t count) |
256 | { | 256 | { |
257 | ssize_t retval = -ENXIO; | 257 | ssize_t retval = -ENXIO; |
258 | struct pardevice *dev = parport_open (devnum, "Device ID probe", | 258 | struct pardevice *dev = parport_open (devnum, "Device ID probe"); |
259 | NULL, NULL, NULL, 0, NULL); | ||
260 | if (!dev) | 259 | if (!dev) |
261 | return -ENXIO; | 260 | return -ENXIO; |
262 | 261 | ||
diff --git a/drivers/parport/share.c b/drivers/parport/share.c index d0b353cf14ac..a8a62bbbb576 100644 --- a/drivers/parport/share.c +++ b/drivers/parport/share.c | |||
@@ -524,7 +524,7 @@ void parport_remove_port(struct parport *port) | |||
524 | struct pardevice * | 524 | struct pardevice * |
525 | parport_register_device(struct parport *port, const char *name, | 525 | parport_register_device(struct parport *port, const char *name, |
526 | int (*pf)(void *), void (*kf)(void *), | 526 | int (*pf)(void *), void (*kf)(void *), |
527 | void (*irq_func)(int, void *), | 527 | void (*irq_func)(void *), |
528 | int flags, void *handle) | 528 | int flags, void *handle) |
529 | { | 529 | { |
530 | struct pardevice *tmp; | 530 | struct pardevice *tmp; |