diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2006-01-15 04:05:19 -0500 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2006-03-31 10:15:51 -0500 |
commit | 50db3fdbbc98260fb538c1cc3f8cc597ba7bffe7 (patch) | |
tree | a3cd6076787d9c55467fcc598c997726315f80d1 /drivers/net | |
parent | 5f2a71fcb7995633b335a1e380ac63a968e61320 (diff) |
[PATCH] pcmcia: convert remaining users of pcmcia_release_io and _irq
Convert the remaining drivers which use pcmcia_release_io or
pcmcia_release_irq, and remove the EXPORT of these symbols.
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/pcmcia/smc91c92_cs.c | 10 | ||||
-rw-r--r-- | drivers/net/wireless/orinoco_cs.c | 3 | ||||
-rw-r--r-- | drivers/net/wireless/ray_cs.c | 8 | ||||
-rw-r--r-- | drivers/net/wireless/spectrum_cs.c | 3 |
4 files changed, 11 insertions, 13 deletions
diff --git a/drivers/net/pcmcia/smc91c92_cs.c b/drivers/net/pcmcia/smc91c92_cs.c index 56700b154d44..03b1d8fbe7b7 100644 --- a/drivers/net/pcmcia/smc91c92_cs.c +++ b/drivers/net/pcmcia/smc91c92_cs.c | |||
@@ -49,6 +49,7 @@ | |||
49 | #include <pcmcia/cisreg.h> | 49 | #include <pcmcia/cisreg.h> |
50 | #include <pcmcia/ciscode.h> | 50 | #include <pcmcia/ciscode.h> |
51 | #include <pcmcia/ds.h> | 51 | #include <pcmcia/ds.h> |
52 | #include <pcmcia/ss.h> | ||
52 | 53 | ||
53 | #include <asm/io.h> | 54 | #include <asm/io.h> |
54 | #include <asm/system.h> | 55 | #include <asm/system.h> |
@@ -965,10 +966,15 @@ static int check_sig(dev_link_t *link) | |||
965 | 966 | ||
966 | if (width) { | 967 | if (width) { |
967 | printk(KERN_INFO "smc91c92_cs: using 8-bit IO window.\n"); | 968 | printk(KERN_INFO "smc91c92_cs: using 8-bit IO window.\n"); |
969 | /* call pcmcia_release_configuration() in _suspend */ | ||
968 | smc91c92_suspend(link->handle); | 970 | smc91c92_suspend(link->handle); |
969 | pcmcia_release_io(link->handle, &link->io); | 971 | |
970 | link->io.Attributes1 = IO_DATA_PATH_WIDTH_8; | 972 | link->io.Attributes1 = IO_DATA_PATH_WIDTH_8; |
971 | pcmcia_request_io(link->handle, &link->io); | 973 | link->handle->socket->io[0].res->flags &= ~IO_DATA_PATH_WIDTH; |
974 | link->handle->socket->io[0].res->flags |= IO_DATA_PATH_WIDTH_8; | ||
975 | |||
976 | /* call pcmcia_request_configuration() in _resume, it handles the | ||
977 | * flag update */ | ||
972 | smc91c92_resume(link->handle); | 978 | smc91c92_resume(link->handle); |
973 | return check_sig(link); | 979 | return check_sig(link); |
974 | } | 980 | } |
diff --git a/drivers/net/wireless/orinoco_cs.c b/drivers/net/wireless/orinoco_cs.c index 7fdc4ff55107..0ce4165efc8f 100644 --- a/drivers/net/wireless/orinoco_cs.c +++ b/drivers/net/wireless/orinoco_cs.c | |||
@@ -317,8 +317,7 @@ orinoco_cs_config(dev_link_t *link) | |||
317 | break; | 317 | break; |
318 | 318 | ||
319 | next_entry: | 319 | next_entry: |
320 | if (link->io.NumPorts1) | 320 | pcmcia_disable_device(handle); |
321 | pcmcia_release_io(link->handle, &link->io); | ||
322 | last_ret = pcmcia_get_next_tuple(handle, &tuple); | 321 | last_ret = pcmcia_get_next_tuple(handle, &tuple); |
323 | if (last_ret == CS_NO_MORE_ITEMS) { | 322 | if (last_ret == CS_NO_MORE_ITEMS) { |
324 | printk(KERN_ERR PFX "GetNextTuple(): No matching " | 323 | printk(KERN_ERR PFX "GetNextTuple(): No matching " |
diff --git a/drivers/net/wireless/ray_cs.c b/drivers/net/wireless/ray_cs.c index 7880d8c31aad..fc81ac67009d 100644 --- a/drivers/net/wireless/ray_cs.c +++ b/drivers/net/wireless/ray_cs.c | |||
@@ -849,22 +849,16 @@ static void ray_release(dev_link_t *link) | |||
849 | DEBUG(1, "ray_release(0x%p)\n", link); | 849 | DEBUG(1, "ray_release(0x%p)\n", link); |
850 | 850 | ||
851 | del_timer(&local->timer); | 851 | del_timer(&local->timer); |
852 | link->state &= ~DEV_CONFIG; | ||
853 | 852 | ||
854 | iounmap(local->sram); | 853 | iounmap(local->sram); |
855 | iounmap(local->rmem); | 854 | iounmap(local->rmem); |
856 | iounmap(local->amem); | 855 | iounmap(local->amem); |
857 | /* Do bother checking to see if these succeed or not */ | 856 | /* Do bother checking to see if these succeed or not */ |
858 | i = pcmcia_release_window(link->win); | ||
859 | if ( i != CS_SUCCESS ) DEBUG(0,"ReleaseWindow(link->win) ret = %x\n",i); | ||
860 | i = pcmcia_release_window(local->amem_handle); | 857 | i = pcmcia_release_window(local->amem_handle); |
861 | if ( i != CS_SUCCESS ) DEBUG(0,"ReleaseWindow(local->amem) ret = %x\n",i); | 858 | if ( i != CS_SUCCESS ) DEBUG(0,"ReleaseWindow(local->amem) ret = %x\n",i); |
862 | i = pcmcia_release_window(local->rmem_handle); | 859 | i = pcmcia_release_window(local->rmem_handle); |
863 | if ( i != CS_SUCCESS ) DEBUG(0,"ReleaseWindow(local->rmem) ret = %x\n",i); | 860 | if ( i != CS_SUCCESS ) DEBUG(0,"ReleaseWindow(local->rmem) ret = %x\n",i); |
864 | i = pcmcia_release_configuration(link->handle); | 861 | pcmcia_disable_device(link->handle); |
865 | if ( i != CS_SUCCESS ) DEBUG(0,"ReleaseConfiguration ret = %x\n",i); | ||
866 | i = pcmcia_release_irq(link->handle, &link->irq); | ||
867 | if ( i != CS_SUCCESS ) DEBUG(0,"ReleaseIRQ ret = %x\n",i); | ||
868 | 862 | ||
869 | DEBUG(2,"ray_release ending\n"); | 863 | DEBUG(2,"ray_release ending\n"); |
870 | } | 864 | } |
diff --git a/drivers/net/wireless/spectrum_cs.c b/drivers/net/wireless/spectrum_cs.c index 78320c1a1c15..b7ed99f8d319 100644 --- a/drivers/net/wireless/spectrum_cs.c +++ b/drivers/net/wireless/spectrum_cs.c | |||
@@ -790,8 +790,7 @@ spectrum_cs_config(dev_link_t *link) | |||
790 | break; | 790 | break; |
791 | 791 | ||
792 | next_entry: | 792 | next_entry: |
793 | if (link->io.NumPorts1) | 793 | pcmcia_disable_device(handle); |
794 | pcmcia_release_io(link->handle, &link->io); | ||
795 | last_ret = pcmcia_get_next_tuple(handle, &tuple); | 794 | last_ret = pcmcia_get_next_tuple(handle, &tuple); |
796 | if (last_ret == CS_NO_MORE_ITEMS) { | 795 | if (last_ret == CS_NO_MORE_ITEMS) { |
797 | printk(KERN_ERR PFX "GetNextTuple(): No matching " | 796 | printk(KERN_ERR PFX "GetNextTuple(): No matching " |