diff options
Diffstat (limited to 'drivers/pnp')
-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 | ||