diff options
author | Dominik Brodowski <linux@dominikbrodowski.net> | 2010-01-02 23:19:45 +0100 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2010-01-24 19:57:47 +0100 |
commit | 3970dd8c5169505f0cc5e4c3e2fde7bdd9bbad3e (patch) | |
tree | 86113b333d7de9d5e6f65b2dc077e44c6656c90b /drivers/pcmcia/cs_internal.h | |
parent | 593f010bc0d8f7fde2ce948cac3f77f6a3d9db2b (diff) | |
download | linux-3.10-3970dd8c5169505f0cc5e4c3e2fde7bdd9bbad3e.tar.gz linux-3.10-3970dd8c5169505f0cc5e4c3e2fde7bdd9bbad3e.tar.bz2 linux-3.10-3970dd8c5169505f0cc5e4c3e2fde7bdd9bbad3e.zip |
pcmcia: do not lock socket driver module on card insert
Do not lock the socket driver module on card insert, as
the PCMCIA core can handle a socket module removal, at least
if we add a call to socket_remove() on pccardd()'s shutdown.
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'drivers/pcmcia/cs_internal.h')
-rw-r--r-- | drivers/pcmcia/cs_internal.h | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/drivers/pcmcia/cs_internal.h b/drivers/pcmcia/cs_internal.h index 3bc02d53a3a..9a3bbad7761 100644 --- a/drivers/pcmcia/cs_internal.h +++ b/drivers/pcmcia/cs_internal.h @@ -87,26 +87,6 @@ struct pccard_resource_ops { #define SOCKET_CARDBUS 0x8000 #define SOCKET_CARDBUS_CONFIG 0x10000 -static inline int cs_socket_get(struct pcmcia_socket *skt) -{ - int ret; - - WARN_ON(skt->state & SOCKET_INUSE); - - ret = try_module_get(skt->owner); - if (ret) - skt->state |= SOCKET_INUSE; - return ret; -} - -static inline void cs_socket_put(struct pcmcia_socket *skt) -{ - if (skt->state & SOCKET_INUSE) { - skt->state &= ~SOCKET_INUSE; - module_put(skt->owner); - } -} - /* * Stuff internal to module "pcmcia_core": |