V4L/DVB (5413): Use spin_lock_init to fix lockdep warnings.
authorHans Verkuil <hverkuil@xs4all.nl>
Sat, 10 Mar 2007 23:09:07 +0000 (20:09 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Fri, 27 Apr 2007 18:44:30 +0000 (15:44 -0300)
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/ivtv/ivtv-driver.c

index c61e88319a2224952cca8f05566567364d8ea07c..4fe42258b214fc23ee55c7c6ae33e3f764b5f712 100644 (file)
@@ -625,8 +625,8 @@ static int __devinit ivtv_init_struct1(struct ivtv *itv)
        mutex_init(&itv->i2c_bus_lock);
        mutex_init(&itv->udma.lock);
 
-       itv->lock = SPIN_LOCK_UNLOCKED;
-       itv->dma_reg_lock = SPIN_LOCK_UNLOCKED;
+       spin_lock_init(&itv->lock);
+       spin_lock_init(&itv->dma_reg_lock);
 
        itv->irq_work_queues = create_workqueue(itv->name);
        if (itv->irq_work_queues == NULL) {