diff options
author | Matthias Kaehlcke <matthias.kaehlcke@gmail.com> | 2008-02-06 01:36:25 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-06 10:41:01 -0800 |
commit | 0a5dcb51770be3cd0202d6b90a07996fb40130b6 (patch) | |
tree | 75ac6d5c64be71369126e8ad05b62b59576df4e7 /include/linux/lp.h | |
parent | 8f47f0b688bba7642dac4e979896e4692177670b (diff) | |
download | op-kernel-dev-0a5dcb51770be3cd0202d6b90a07996fb40130b6.zip op-kernel-dev-0a5dcb51770be3cd0202d6b90a07996fb40130b6.tar.gz |
Parallel port: convert port_mutex to the mutex API
Parallel port: Convert port_mutex to the mutex API
[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Matthias Kaehlcke <matthias.kaehlcke@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/lp.h')
-rw-r--r-- | include/linux/lp.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/lp.h b/include/linux/lp.h index 7059b6b..0df024b 100644 --- a/include/linux/lp.h +++ b/include/linux/lp.h @@ -99,7 +99,7 @@ #ifdef __KERNEL__ #include <linux/wait.h> -#include <asm/semaphore.h> +#include <linux/mutex.h> /* Magic numbers for defining port-device mappings */ #define LP_PARPORT_UNSPEC -4 @@ -145,7 +145,7 @@ struct lp_struct { #endif wait_queue_head_t waitq; unsigned int last_error; - struct semaphore port_mutex; + struct mutex port_mutex; wait_queue_head_t dataq; long timeout; unsigned int best_mode; |