From 6ffae84bb0718cd7a45b88ae9285b1aaf84c1d2e Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Mon, 21 Nov 2005 00:11:58 +0000 Subject: [PATCH] Static initialization of spinlocks has been deprecated by the kernel (from anders.blomdell@control.lth.se (Anders Blomdell)). --- comedi/comedi_fops.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/comedi/comedi_fops.c b/comedi/comedi_fops.c index 1c88bd14..272f7f3e 100644 --- a/comedi/comedi_fops.c +++ b/comedi/comedi_fops.c @@ -58,7 +58,7 @@ MODULE_PARM(comedi_debug, "i"); #endif comedi_device *comedi_devices; -spinlock_t big_comedi_lock = SPIN_LOCK_UNLOCKED; +spinlock_t big_comedi_lock; /* Dynamic initialization */ static int do_devconfig_ioctl(comedi_device *dev,comedi_devconfig *arg,unsigned int minor); static int do_bufconfig_ioctl(comedi_device *dev,void *arg); @@ -1707,6 +1707,7 @@ static int __init comedi_init(void) int i; printk("comedi: version " COMEDI_RELEASE " - David Schleef \n"); + spin_lock_init(&big_comedi_lock); if(devfs_register_chrdev(COMEDI_MAJOR,"comedi",&comedi_fops)){ printk("comedi: unable to get major %d\n",COMEDI_MAJOR); return -EIO; -- 2.26.2