X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=arch%2Fppc64%2Fkernel%2FpSeries_nvram.c;h=52aeefdeca86427ac8e05c0f7f90e551f55aeee0;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=5d74028d512f707593551e0fea3a8e0bb097bb06;hpb=87fc8d1bb10cd459024a742c6a10961fefcef18f;p=linux-2.6.git diff --git a/arch/ppc64/kernel/pSeries_nvram.c b/arch/ppc64/kernel/pSeries_nvram.c index 5d74028d5..52aeefdec 100644 --- a/arch/ppc64/kernel/pSeries_nvram.c +++ b/arch/ppc64/kernel/pSeries_nvram.c @@ -31,7 +31,7 @@ static unsigned int nvram_size; static int nvram_fetch, nvram_store; static char nvram_buf[NVRW_CNT]; /* assume this is in the first 4GB */ -static spinlock_t nvram_lock = SPIN_LOCK_UNLOCKED; +static DEFINE_SPINLOCK(nvram_lock); static ssize_t pSeries_nvram_read(char *buf, size_t count, loff_t *index)