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/fmvj18x_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/fmvj18x_cs.c')
-rw-r--r-- | drivers/net/pcmcia/fmvj18x_cs.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/net/pcmcia/fmvj18x_cs.c b/drivers/net/pcmcia/fmvj18x_cs.c index b9dc80b9d04a..31f1a037737c 100644 --- a/drivers/net/pcmcia/fmvj18x_cs.c +++ b/drivers/net/pcmcia/fmvj18x_cs.c | |||
@@ -254,10 +254,6 @@ static int fmvj18x_probe(struct pcmcia_device *link) | |||
254 | link->io.Attributes1 = IO_DATA_PATH_WIDTH_AUTO; | 254 | link->io.Attributes1 = IO_DATA_PATH_WIDTH_AUTO; |
255 | link->io.IOAddrLines = 5; | 255 | link->io.IOAddrLines = 5; |
256 | 256 | ||
257 | /* Interrupt setup */ | ||
258 | link->irq.Attributes = IRQ_TYPE_DYNAMIC_SHARING; | ||
259 | link->irq.Handler = fjn_interrupt; | ||
260 | |||
261 | /* General socket configuration */ | 257 | /* General socket configuration */ |
262 | link->conf.Attributes = CONF_ENABLE_IRQ; | 258 | link->conf.Attributes = CONF_ENABLE_IRQ; |
263 | link->conf.IntType = INT_MEMORY_AND_IO; | 259 | link->conf.IntType = INT_MEMORY_AND_IO; |
@@ -425,8 +421,6 @@ static int fmvj18x_config(struct pcmcia_device *link) | |||
425 | } | 421 | } |
426 | 422 | ||
427 | if (link->io.NumPorts2 != 0) { | 423 | if (link->io.NumPorts2 != 0) { |
428 | link->irq.Attributes = | ||
429 | IRQ_TYPE_DYNAMIC_SHARING; | ||
430 | ret = mfc_try_io_port(link); | 424 | ret = mfc_try_io_port(link); |
431 | if (ret != 0) goto failed; | 425 | if (ret != 0) goto failed; |
432 | } else if (cardtype == UNGERMANN) { | 426 | } else if (cardtype == UNGERMANN) { |
@@ -437,14 +431,14 @@ static int fmvj18x_config(struct pcmcia_device *link) | |||
437 | if (ret) | 431 | if (ret) |
438 | goto failed; | 432 | goto failed; |
439 | } | 433 | } |
440 | ret = pcmcia_request_irq(link, &link->irq); | 434 | ret = pcmcia_request_irq(link, fjn_interrupt); |
441 | if (ret) | 435 | if (ret) |
442 | goto failed; | 436 | goto failed; |
443 | ret = pcmcia_request_configuration(link, &link->conf); | 437 | ret = pcmcia_request_configuration(link, &link->conf); |
444 | if (ret) | 438 | if (ret) |
445 | goto failed; | 439 | goto failed; |
446 | 440 | ||
447 | dev->irq = link->irq.AssignedIRQ; | 441 | dev->irq = link->irq; |
448 | dev->base_addr = link->io.BasePort1; | 442 | dev->base_addr = link->io.BasePort1; |
449 | 443 | ||
450 | if (link->io.BasePort2 != 0) { | 444 | if (link->io.BasePort2 != 0) { |