diff options
Diffstat (limited to 'drivers/media/common/saa7146_core.c')
-rw-r--r-- | drivers/media/common/saa7146_core.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/media/common/saa7146_core.c b/drivers/media/common/saa7146_core.c index 04c1938b9c9..8cdd4d265ff 100644 --- a/drivers/media/common/saa7146_core.c +++ b/drivers/media/common/saa7146_core.c | |||
@@ -21,7 +21,7 @@ | |||
21 | #include <media/saa7146.h> | 21 | #include <media/saa7146.h> |
22 | 22 | ||
23 | LIST_HEAD(saa7146_devices); | 23 | LIST_HEAD(saa7146_devices); |
24 | DECLARE_MUTEX(saa7146_devices_lock); | 24 | DEFINE_MUTEX(saa7146_devices_lock); |
25 | 25 | ||
26 | static int saa7146_num; | 26 | static int saa7146_num; |
27 | 27 | ||
@@ -116,8 +116,7 @@ static struct scatterlist* vmalloc_to_sg(unsigned char *virt, int nr_pages) | |||
116 | pg = vmalloc_to_page(virt); | 116 | pg = vmalloc_to_page(virt); |
117 | if (NULL == pg) | 117 | if (NULL == pg) |
118 | goto err; | 118 | goto err; |
119 | if (PageHighMem(pg)) | 119 | BUG_ON(PageHighMem(pg)); |
120 | BUG(); | ||
121 | sglist[i].page = pg; | 120 | sglist[i].page = pg; |
122 | sglist[i].length = PAGE_SIZE; | 121 | sglist[i].length = PAGE_SIZE; |
123 | } | 122 | } |
@@ -402,11 +401,11 @@ static int saa7146_init_one(struct pci_dev *pci, const struct pci_device_id *ent | |||
402 | 401 | ||
403 | pci_set_drvdata(pci, dev); | 402 | pci_set_drvdata(pci, dev); |
404 | 403 | ||
405 | init_MUTEX(&dev->lock); | 404 | mutex_init(&dev->lock); |
406 | spin_lock_init(&dev->int_slock); | 405 | spin_lock_init(&dev->int_slock); |
407 | spin_lock_init(&dev->slock); | 406 | spin_lock_init(&dev->slock); |
408 | 407 | ||
409 | init_MUTEX(&dev->i2c_lock); | 408 | mutex_init(&dev->i2c_lock); |
410 | 409 | ||
411 | dev->module = THIS_MODULE; | 410 | dev->module = THIS_MODULE; |
412 | init_waitqueue_head(&dev->i2c_wq); | 411 | init_waitqueue_head(&dev->i2c_wq); |