X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fchar%2Fefirtc.c;h=0090e7a4fcd34bd67cd04c73869072fce59bf7e7;hb=6a77f38946aaee1cd85eeec6cf4229b204c15071;hp=1845739eea84809d3e09a74e5495e3ebc365738f;hpb=c7b5ebbddf7bcd3651947760f423e3783bbe6573;p=linux-2.6.git diff --git a/drivers/char/efirtc.c b/drivers/char/efirtc.c index 1845739ee..0090e7a4f 100644 --- a/drivers/char/efirtc.c +++ b/drivers/char/efirtc.c @@ -48,7 +48,7 @@ */ #define EFI_RTC_EPOCH 1998 -static spinlock_t efi_rtc_lock = SPIN_LOCK_UNLOCKED; +static DEFINE_SPINLOCK(efi_rtc_lock); static int efi_rtc_ioctl(struct inode *inode, struct file *file, unsigned int cmd, unsigned long arg);