diff options
| author | Dominik Brodowski <linux@dominikbrodowski.net> | 2010-03-07 12:21:16 +0100 | 
|---|---|---|
| committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2010-05-10 10:23:13 +0200 | 
| commit | eb14120f743d29744d9475bffec56ff4ad43a749 (patch) | |
| tree | 56857094d2b0cfc0ecbd1685f18d6edbe78e140f /drivers/net/wireless/orinoco/orinoco_cs.c | |
| parent | a7debe789dfcaee9c4d81e5738b0be8c5d93930b (diff) | |
| download | olio-linux-3.10-eb14120f743d29744d9475bffec56ff4ad43a749.tar.xz olio-linux-3.10-eb14120f743d29744d9475bffec56ff4ad43a749.zip  | |
pcmcia: re-work pcmcia_request_irq()
Instead of the old pcmcia_request_irq() interface, drivers may now
choose between:
- calling request_irq/free_irq directly. Use the IRQ from *p_dev->irq.
- use pcmcia_request_irq(p_dev, handler_t); the PCMCIA core will
  clean up automatically on calls to pcmcia_disable_device() or
  device ejection.
- drivers still not capable of IRQF_SHARED (or not telling us so) may
  use the deprecated pcmcia_request_exclusive_irq() for the time
  being; they might receive a shared IRQ nonetheless.
CC: linux-bluetooth@vger.kernel.org
CC: netdev@vger.kernel.org
CC: linux-wireless@vger.kernel.org
CC: linux-serial@vger.kernel.org
CC: alsa-devel@alsa-project.org
CC: linux-usb@vger.kernel.org
CC: linux-ide@vger.kernel.org
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/net/wireless/orinoco/orinoco_cs.c')
| -rw-r--r-- | drivers/net/wireless/orinoco/orinoco_cs.c | 13 | 
1 files changed, 2 insertions, 11 deletions
diff --git a/drivers/net/wireless/orinoco/orinoco_cs.c b/drivers/net/wireless/orinoco/orinoco_cs.c index 1d4ada188ed..5d29b11fdbc 100644 --- a/drivers/net/wireless/orinoco/orinoco_cs.c +++ b/drivers/net/wireless/orinoco/orinoco_cs.c @@ -119,10 +119,6 @@ orinoco_cs_probe(struct pcmcia_device *link)  	card->p_dev = link;  	link->priv = priv; -	/* Interrupt setup */ -	link->irq.Attributes = IRQ_TYPE_DYNAMIC_SHARING; -	link->irq.Handler = orinoco_interrupt; -  	/* General socket configuration defaults can go here.  In this  	 * client, we assume very little, and rely on the CIS for  	 * almost everything.  In most clients, many details (i.e., @@ -258,12 +254,7 @@ orinoco_cs_config(struct pcmcia_device *link)  		goto failed;  	} -	/* -	 * Allocate an interrupt line.  Note that this does not assign -	 * a handler to the interrupt, unless the 'Handler' member of -	 * the irq structure is initialized. -	 */ -	ret = pcmcia_request_irq(link, &link->irq); +	ret = pcmcia_request_irq(link, orinoco_interrupt);  	if (ret)  		goto failed; @@ -296,7 +287,7 @@ orinoco_cs_config(struct pcmcia_device *link)  	/* Register an interface with the stack */  	if (orinoco_if_add(priv, link->io.BasePort1, -			   link->irq.AssignedIRQ) != 0) { +			   link->irq) != 0) {  		printk(KERN_ERR PFX "orinoco_if_add() failed\n");  		goto failed;  	}  |