[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>
This commit is contained in:
Jeff Garzik 2007-10-19 02:54:26 -04:00
parent f230d1010a
commit 5712cb3d81
11 changed files with 19 additions and 39 deletions

View file

@ -267,9 +267,9 @@ static ssize_t pp_write (struct file * file, const char __user * buf,
return bytes_written; return bytes_written;
} }
static void pp_irq (int irq, void * private) static void pp_irq (void *private)
{ {
struct pp_struct * pp = (struct pp_struct *) private; struct pp_struct *pp = private;
if (pp->irqresponse) { if (pp->irqresponse) {
parport_write_control (pp->pdev->port, pp->irqctl); parport_write_control (pp->pdev->port, pp->irqctl);

View file

@ -102,7 +102,7 @@ static int parkbd_write(struct serio *port, unsigned char c)
return 0; return 0;
} }
static void parkbd_interrupt(int irq, void *dev_id) static void parkbd_interrupt(void *dev_id)
{ {
if (parkbd_writing) { if (parkbd_writing) {

View file

@ -325,12 +325,6 @@ static int eppconfig(struct baycom_state *bc)
/* ---------------------------------------------------------------------- */ /* ---------------------------------------------------------------------- */
static void epp_interrupt(int irq, void *dev_id)
{
}
/* ---------------------------------------------------------------------- */
static inline void do_kiss_params(struct baycom_state *bc, static inline void do_kiss_params(struct baycom_state *bc,
unsigned char *data, unsigned long len) unsigned char *data, unsigned long len)
{ {
@ -871,7 +865,7 @@ static int epp_open(struct net_device *dev)
} }
memset(&bc->modem, 0, sizeof(bc->modem)); memset(&bc->modem, 0, sizeof(bc->modem));
bc->pdev = parport_register_device(pp, dev->name, NULL, epp_wakeup, bc->pdev = parport_register_device(pp, dev->name, NULL, epp_wakeup,
epp_interrupt, PARPORT_DEV_EXCL, dev); NULL, PARPORT_DEV_EXCL, dev);
parport_put_port(pp); parport_put_port(pp);
if (!bc->pdev) { if (!bc->pdev) {
printk(KERN_ERR "%s: cannot register parport at 0x%lx\n", bc_drvname, pp->base); printk(KERN_ERR "%s: cannot register parport at 0x%lx\n", bc_drvname, pp->base);

View file

@ -270,9 +270,9 @@ static __inline__ void par96_rx(struct net_device *dev, struct baycom_state *bc)
/* --------------------------------------------------------------------- */ /* --------------------------------------------------------------------- */
static void par96_interrupt(int irq, void *dev_id) static void par96_interrupt(void *dev_id)
{ {
struct net_device *dev = (struct net_device *)dev_id; struct net_device *dev = dev_id;
struct baycom_state *bc = netdev_priv(dev); struct baycom_state *bc = netdev_priv(dev);
baycom_int_freq(bc); baycom_int_freq(bc);

View file

@ -143,7 +143,7 @@ static void plip_bh(struct work_struct *work);
static void plip_timer_bh(struct work_struct *work); static void plip_timer_bh(struct work_struct *work);
/* Interrupt handler */ /* Interrupt handler */
static void plip_interrupt(int irq, void *dev_id); static void plip_interrupt(void *dev_id);
/* Functions for DEV methods */ /* Functions for DEV methods */
static int plip_tx_packet(struct sk_buff *skb, struct net_device *dev); static int plip_tx_packet(struct sk_buff *skb, struct net_device *dev);
@ -380,7 +380,7 @@ plip_timer_bh(struct work_struct *work)
container_of(work, struct net_local, timer.work); container_of(work, struct net_local, timer.work);
if (!(atomic_read (&nl->kill_timer))) { if (!(atomic_read (&nl->kill_timer))) {
plip_interrupt (-1, nl->dev); plip_interrupt (nl->dev);
schedule_delayed_work(&nl->timer, 1); schedule_delayed_work(&nl->timer, 1);
} }
@ -897,7 +897,7 @@ plip_error(struct net_device *dev, struct net_local *nl,
/* Handle the parallel port interrupts. */ /* Handle the parallel port interrupts. */
static void static void
plip_interrupt(int irq, void *dev_id) plip_interrupt(void *dev_id)
{ {
struct net_device *dev = dev_id; struct net_device *dev = dev_id;
struct net_local *nl; struct net_local *nl;

View file

@ -199,11 +199,6 @@ void parport_daisy_fini(struct parport *port)
* parport_open - find a device by canonical device number * parport_open - find a device by canonical device number
* @devnum: canonical device number * @devnum: canonical device number
* @name: name to associate with the device * @name: name to associate with the device
* @pf: preemption callback
* @kf: kick callback
* @irqf: interrupt handler
* @flags: registration flags
* @handle: driver data
* *
* This function is similar to parport_register_device(), except * This function is similar to parport_register_device(), except
* that it locates a device by its number rather than by the port * that it locates a device by its number rather than by the port
@ -214,10 +209,7 @@ void parport_daisy_fini(struct parport *port)
* for parport_register_device(). * for parport_register_device().
**/ **/
struct pardevice *parport_open(int devnum, const char *name, struct pardevice *parport_open(int devnum, const char *name)
int (*pf) (void *), void (*kf) (void *),
void (*irqf) (int, void *),
int flags, void *handle)
{ {
struct daisydev *p = topology; struct daisydev *p = topology;
struct parport *port; struct parport *port;
@ -237,8 +229,7 @@ struct pardevice *parport_open(int devnum, const char *name,
port = parport_get_port(p->port); port = parport_get_port(p->port);
spin_unlock(&topology_lock); spin_unlock(&topology_lock);
dev = parport_register_device(port, name, pf, kf, dev = parport_register_device(port, name, NULL, NULL, NULL, 0, NULL);
irqf, flags, handle);
parport_put_port(port); parport_put_port(port);
if (!dev) if (!dev)
return NULL; return NULL;

View file

@ -255,8 +255,7 @@ static ssize_t parport_read_device_id (struct parport *port, char *buffer,
ssize_t parport_device_id (int devnum, char *buffer, size_t count) ssize_t parport_device_id (int devnum, char *buffer, size_t count)
{ {
ssize_t retval = -ENXIO; ssize_t retval = -ENXIO;
struct pardevice *dev = parport_open (devnum, "Device ID probe", struct pardevice *dev = parport_open (devnum, "Device ID probe");
NULL, NULL, NULL, 0, NULL);
if (!dev) if (!dev)
return -ENXIO; return -ENXIO;

View file

@ -524,7 +524,7 @@ void parport_remove_port(struct parport *port)
struct pardevice * struct pardevice *
parport_register_device(struct parport *port, const char *name, parport_register_device(struct parport *port, const char *name,
int (*pf)(void *), void (*kf)(void *), int (*pf)(void *), void (*kf)(void *),
void (*irq_func)(int, void *), void (*irq_func)(void *),
int flags, void *handle) int flags, void *handle)
{ {
struct pardevice *tmp; struct pardevice *tmp;

View file

@ -230,7 +230,7 @@ struct pardevice {
int (*preempt)(void *); int (*preempt)(void *);
void (*wakeup)(void *); void (*wakeup)(void *);
void *private; void *private;
void (*irq_func)(int, void *); void (*irq_func)(void *);
unsigned int flags; unsigned int flags;
struct pardevice *next; struct pardevice *next;
struct pardevice *prev; struct pardevice *prev;
@ -383,7 +383,7 @@ extern void parport_put_port (struct parport *);
struct pardevice *parport_register_device(struct parport *port, struct pardevice *parport_register_device(struct parport *port,
const char *name, const char *name,
int (*pf)(void *), void (*kf)(void *), int (*pf)(void *), void (*kf)(void *),
void (*irq_func)(int, void *), void (*irq_func)(void *),
int flags, void *handle); int flags, void *handle);
/* parport_unregister unlinks a device from the chain. */ /* parport_unregister unlinks a device from the chain. */
@ -507,11 +507,7 @@ extern size_t parport_ieee1284_epp_read_addr (struct parport *,
/* IEEE1284.3 functions */ /* IEEE1284.3 functions */
extern int parport_daisy_init (struct parport *port); extern int parport_daisy_init (struct parport *port);
extern void parport_daisy_fini (struct parport *port); extern void parport_daisy_fini (struct parport *port);
extern struct pardevice *parport_open (int devnum, const char *name, extern struct pardevice *parport_open (int devnum, const char *name);
int (*pf) (void *),
void (*kf) (void *),
void (*irqf) (int, void *),
int flags, void *handle);
extern void parport_close (struct pardevice *dev); extern void parport_close (struct pardevice *dev);
extern ssize_t parport_device_id (int devnum, char *buffer, size_t len); extern ssize_t parport_device_id (int devnum, char *buffer, size_t len);
extern void parport_daisy_deselect_all (struct parport *port); extern void parport_daisy_deselect_all (struct parport *port);
@ -523,7 +519,7 @@ static inline void parport_generic_irq(struct parport *port)
parport_ieee1284_interrupt (port); parport_ieee1284_interrupt (port);
read_lock(&port->cad_lock); read_lock(&port->cad_lock);
if (port->cad && port->cad->irq_func) if (port->cad && port->cad->irq_func)
port->cad->irq_func(port->irq, port->cad->private); port->cad->irq_func(port->cad->private);
read_unlock(&port->cad_lock); read_unlock(&port->cad_lock);
} }

View file

@ -830,7 +830,7 @@ static int __devinit snd_mts64_rawmidi_create(struct snd_card *card)
/********************************************************************* /*********************************************************************
* parport stuff * parport stuff
*********************************************************************/ *********************************************************************/
static void snd_mts64_interrupt(int irq, void *private) static void snd_mts64_interrupt(void *private)
{ {
struct mts64 *mts = ((struct snd_card*)private)->private_data; struct mts64 *mts = ((struct snd_card*)private)->private_data;
u16 ret; u16 ret;

View file

@ -611,7 +611,7 @@ static int __devinit snd_portman_rawmidi_create(struct snd_card *card)
/********************************************************************* /*********************************************************************
* parport stuff * parport stuff
*********************************************************************/ *********************************************************************/
static void snd_portman_interrupt(int irq, void *userdata) static void snd_portman_interrupt(void *userdata)
{ {
unsigned char midivalue = 0; unsigned char midivalue = 0;
struct portman *pm = ((struct snd_card*)userdata)->private_data; struct portman *pm = ((struct snd_card*)userdata)->private_data;