summaryrefslogtreecommitdiff
path: root/linux/drivers
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2007-03-11 00:09:07 +0100
committerHans Verkuil <hverkuil@xs4all.nl>2007-03-11 00:09:07 +0100
commitbbfbb3f887465820183b7b2e7f510c9413dbf371 (patch)
treea1ad83ec80f777acfff5e35511556618cef94247 /linux/drivers
parent5de7342f8a1e226a204c06b2d9567c958a8a2966 (diff)
downloadmediapointer-dvb-s2-bbfbb3f887465820183b7b2e7f510c9413dbf371.tar.gz
mediapointer-dvb-s2-bbfbb3f887465820183b7b2e7f510c9413dbf371.tar.bz2
Use spin_lock_init to fix lockdep warnings.
From: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/drivers')
-rw-r--r--linux/drivers/media/video/ivtv/ivtv-driver.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/drivers/media/video/ivtv/ivtv-driver.c b/linux/drivers/media/video/ivtv/ivtv-driver.c
index adfc8a869..fd39eecd5 100644
--- a/linux/drivers/media/video/ivtv/ivtv-driver.c
+++ b/linux/drivers/media/video/ivtv/ivtv-driver.c
@@ -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) {