X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=drivers%2Fchar%2Fnvram.c;h=f63a3fd7ca6f18666954f9d2d424926049f7149d;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=e4d24e0682249d01c6240df470634531486acbc6;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/drivers/char/nvram.c b/drivers/char/nvram.c index e4d24e068..f63a3fd7c 100644 --- a/drivers/char/nvram.c +++ b/drivers/char/nvram.c @@ -133,7 +133,7 @@ #include #include -static spinlock_t nvram_state_lock = SPIN_LOCK_UNLOCKED; +static DEFINE_SPINLOCK(nvram_state_lock); static int nvram_open_cnt; /* #times opened */ static int nvram_open_mode; /* special open modes */ #define NVRAM_WRITE 1 /* opened for writing (exclusive) */