diff options
author | Ingo Molnar <mingo@elte.hu> | 2006-03-26 04:37:14 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-03-26 11:56:55 -0500 |
commit | 14cc3e2b633bb64063698980974df4535368e98f (patch) | |
tree | d542c9db7376de199d640b8e34d5630460b217b5 /drivers/pnp/isapnp | |
parent | 353ab6e97b8f209dbecc9f650f1f84e3da2a7bb1 (diff) |
[PATCH] sem2mutex: misc static one-file mutexes
Semaphore to mutex conversion.
The conversion was generated via scripts, and the result was validated
automatically via a script as well.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Cc: Dave Jones <davej@codemonkey.org.uk>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Jens Axboe <axboe@suse.de>
Cc: Neil Brown <neilb@cse.unsw.edu.au>
Acked-by: Alasdair G Kergon <agk@redhat.com>
Cc: Greg KH <greg@kroah.com>
Cc: Dominik Brodowski <linux@dominikbrodowski.net>
Cc: Adam Belay <ambx1@neo.rr.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/pnp/isapnp')
-rw-r--r-- | drivers/pnp/isapnp/core.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/pnp/isapnp/core.c b/drivers/pnp/isapnp/core.c index b1b4b683cbdd..ac7c2bb6c69e 100644 --- a/drivers/pnp/isapnp/core.c +++ b/drivers/pnp/isapnp/core.c | |||
@@ -42,6 +42,7 @@ | |||
42 | #include <linux/delay.h> | 42 | #include <linux/delay.h> |
43 | #include <linux/init.h> | 43 | #include <linux/init.h> |
44 | #include <linux/isapnp.h> | 44 | #include <linux/isapnp.h> |
45 | #include <linux/mutex.h> | ||
45 | #include <asm/io.h> | 46 | #include <asm/io.h> |
46 | 47 | ||
47 | #if 0 | 48 | #if 0 |
@@ -92,7 +93,7 @@ MODULE_LICENSE("GPL"); | |||
92 | #define _LTAG_FIXEDMEM32RANGE 0x86 | 93 | #define _LTAG_FIXEDMEM32RANGE 0x86 |
93 | 94 | ||
94 | static unsigned char isapnp_checksum_value; | 95 | static unsigned char isapnp_checksum_value; |
95 | static DECLARE_MUTEX(isapnp_cfg_mutex); | 96 | static DEFINE_MUTEX(isapnp_cfg_mutex); |
96 | static int isapnp_detected; | 97 | static int isapnp_detected; |
97 | static int isapnp_csn_count; | 98 | static int isapnp_csn_count; |
98 | 99 | ||
@@ -903,7 +904,7 @@ int isapnp_cfg_begin(int csn, int logdev) | |||
903 | { | 904 | { |
904 | if (csn < 1 || csn > isapnp_csn_count || logdev > 10) | 905 | if (csn < 1 || csn > isapnp_csn_count || logdev > 10) |
905 | return -EINVAL; | 906 | return -EINVAL; |
906 | down(&isapnp_cfg_mutex); | 907 | mutex_lock(&isapnp_cfg_mutex); |
907 | isapnp_wait(); | 908 | isapnp_wait(); |
908 | isapnp_key(); | 909 | isapnp_key(); |
909 | isapnp_wake(csn); | 910 | isapnp_wake(csn); |
@@ -929,7 +930,7 @@ int isapnp_cfg_begin(int csn, int logdev) | |||
929 | int isapnp_cfg_end(void) | 930 | int isapnp_cfg_end(void) |
930 | { | 931 | { |
931 | isapnp_wait(); | 932 | isapnp_wait(); |
932 | up(&isapnp_cfg_mutex); | 933 | mutex_unlock(&isapnp_cfg_mutex); |
933 | return 0; | 934 | return 0; |
934 | } | 935 | } |
935 | 936 | ||