X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sound%2Fsound_core.c;h=30f75c9288cb8b38e298abd287e377c09dccb6a4;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=e8d5b2edcfd8313bea2b753293028422bf1ff8d2;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/sound/sound_core.c b/sound/sound_core.c index e8d5b2edc..30f75c928 100644 --- a/sound/sound_core.c +++ b/sound/sound_core.c @@ -146,7 +146,7 @@ static struct sound_unit *__sound_remove_unit(struct sound_unit **list, int unit * This lock guards the sound loader list. */ -static spinlock_t sound_loader_lock = SPIN_LOCK_UNLOCKED; +static DEFINE_SPINLOCK(sound_loader_lock); /* * Allocate the controlling structure and add it to the sound driver