X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Finput%2Fmisc%2Fpcspkr.c;h=58a39fd93fb83e66aa0ad6be39830a1122063d87;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=830d1c37ca1fba97eb510d833def48f23daf0e92;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/drivers/input/misc/pcspkr.c b/drivers/input/misc/pcspkr.c index 830d1c37c..58a39fd93 100644 --- a/drivers/input/misc/pcspkr.c +++ b/drivers/input/misc/pcspkr.c @@ -27,7 +27,7 @@ static char pcspkr_name[] = "PC Speaker"; static char pcspkr_phys[] = "isa0061/input0"; static struct input_dev pcspkr_dev; -spinlock_t i8253_beep_lock = SPIN_LOCK_UNLOCKED; +DEFINE_SPINLOCK(i8253_beep_lock); static int pcspkr_event(struct input_dev *dev, unsigned int type, unsigned int code, int value) {