diff options
Diffstat (limited to 'drivers/pcmcia/ds.c')
-rw-r--r-- | drivers/pcmcia/ds.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pcmcia/ds.c b/drivers/pcmcia/ds.c index e469a46a388b..ff14fd8f0cd1 100644 --- a/drivers/pcmcia/ds.c +++ b/drivers/pcmcia/ds.c | |||
@@ -1273,7 +1273,9 @@ static void pcmcia_bus_remove_socket(struct class_device *class_dev, | |||
1273 | pccard_register_pcmcia(socket, NULL); | 1273 | pccard_register_pcmcia(socket, NULL); |
1274 | 1274 | ||
1275 | /* unregister any unbound devices */ | 1275 | /* unregister any unbound devices */ |
1276 | mutex_lock(&socket->skt_mutex); | ||
1276 | pcmcia_card_remove(socket, NULL); | 1277 | pcmcia_card_remove(socket, NULL); |
1278 | mutex_unlock(&socket->skt_mutex); | ||
1277 | 1279 | ||
1278 | pcmcia_put_socket(socket); | 1280 | pcmcia_put_socket(socket); |
1279 | 1281 | ||