X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sound%2Foss%2Fwf_midi.c;h=7b167b74375b5b5d3540d7dd58417ae989a57b6e;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=3ced960e53d4864f85fc8bc77acd81b520110e5c;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/sound/oss/wf_midi.c b/sound/oss/wf_midi.c index 3ced960e5..7b167b743 100644 --- a/sound/oss/wf_midi.c +++ b/sound/oss/wf_midi.c @@ -81,7 +81,7 @@ static struct wf_mpu_config *phys_dev = &devs[0]; static struct wf_mpu_config *virt_dev = &devs[1]; static void start_uart_mode (void); -static spinlock_t lock=SPIN_LOCK_UNLOCKED; +static DEFINE_SPINLOCK(lock); #define OUTPUT_READY 0x40 #define INPUT_AVAIL 0x80