pcmcia: use mutex for dynid lock
authorDominik Brodowski <linux@dominikbrodowski.net>
Sat, 16 Jan 2010 12:06:40 +0000 (13:06 +0100)
committerDominik Brodowski <linux@dominikbrodowski.net>
Wed, 17 Feb 2010 16:48:23 +0000 (17:48 +0100)
commit3f565232c561fbd9d5e03354aac29b90cb2bc78a
treee8da4dc6a2ed90777f9d122fd86eea92c47d61a1
parent94a819f80297e1f635a7cde4ed5317612e512ba7
pcmcia: use mutex for dynid lock

Even though we weren't calling a blocking function within the dynid
spinlock, we do not need a spinlock here but can and should be using
a mutex.

Reported-by: Jiri Slaby <jirislaby@gmail.com>
Tested-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
drivers/pcmcia/ds.c
include/pcmcia/ds.h