diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2010-03-07 06:21:16 -0500 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2010-05-10 04:23:13 -0400 |
commit | eb14120f743d29744d9475bffec56ff4ad43a749 (patch) | |
tree | 56857094d2b0cfc0ecbd1685f18d6edbe78e140f /drivers/net/pcmcia/3c589_cs.c | |
parent | a7debe789dfcaee9c4d81e5738b0be8c5d93930b (diff) |
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/pcmcia/3c589_cs.c')
-rw-r--r-- | drivers/net/pcmcia/3c589_cs.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/pcmcia/3c589_cs.c b/drivers/net/pcmcia/3c589_cs.c index 091e0b00043e..405d772bfde7 100644 --- a/drivers/net/pcmcia/3c589_cs.c +++ b/drivers/net/pcmcia/3c589_cs.c | |||
@@ -194,8 +194,7 @@ static int tc589_probe(struct pcmcia_device *link) | |||
194 | spin_lock_init(&lp->lock); | 194 | spin_lock_init(&lp->lock); |
195 | link->io.NumPorts1 = 16; | 195 | link->io.NumPorts1 = 16; |
196 | link->io.Attributes1 = IO_DATA_PATH_WIDTH_16; | 196 | link->io.Attributes1 = IO_DATA_PATH_WIDTH_16; |
197 | link->irq.Attributes = IRQ_TYPE_DYNAMIC_SHARING; | 197 | |
198 | link->irq.Handler = &el3_interrupt; | ||
199 | link->conf.Attributes = CONF_ENABLE_IRQ; | 198 | link->conf.Attributes = CONF_ENABLE_IRQ; |
200 | link->conf.IntType = INT_MEMORY_AND_IO; | 199 | link->conf.IntType = INT_MEMORY_AND_IO; |
201 | link->conf.ConfigIndex = 1; | 200 | link->conf.ConfigIndex = 1; |
@@ -271,7 +270,7 @@ static int tc589_config(struct pcmcia_device *link) | |||
271 | if (i != 0) | 270 | if (i != 0) |
272 | goto failed; | 271 | goto failed; |
273 | 272 | ||
274 | ret = pcmcia_request_irq(link, &link->irq); | 273 | ret = pcmcia_request_irq(link, el3_interrupt); |
275 | if (ret) | 274 | if (ret) |
276 | goto failed; | 275 | goto failed; |
277 | 276 | ||
@@ -279,7 +278,7 @@ static int tc589_config(struct pcmcia_device *link) | |||
279 | if (ret) | 278 | if (ret) |
280 | goto failed; | 279 | goto failed; |
281 | 280 | ||
282 | dev->irq = link->irq.AssignedIRQ; | 281 | dev->irq = link->irq; |
283 | dev->base_addr = link->io.BasePort1; | 282 | dev->base_addr = link->io.BasePort1; |
284 | ioaddr = dev->base_addr; | 283 | ioaddr = dev->base_addr; |
285 | EL3WINDOW(0); | 284 | EL3WINDOW(0); |