diff options
-rw-r--r-- | linux/drivers/media/dvb/av7110/saa7146_core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/av7110/saa7146_core.c b/linux/drivers/media/dvb/av7110/saa7146_core.c index 7012473a9..ad2b490a0 100644 --- a/linux/drivers/media/dvb/av7110/saa7146_core.c +++ b/linux/drivers/media/dvb/av7110/saa7146_core.c @@ -265,6 +265,8 @@ int master_xfer (struct dvb_i2c_bus *i2c, struct i2c_msg msgs[], int num) /* registering functions to load algorithms at runtime */ int i2c_saa7146_add_bus (struct saa7146 *saa) { + init_MUTEX(&saa->i2c_sem); + /* enable i2c-port pins */ saa7146_write (saa->mem, MC1, (MASK_08 | MASK_24)); @@ -847,8 +849,6 @@ int __devinit saa7146_init_one (struct pci_dev *pdev, list_add_tail (&saa->list_head, &saa7146_list); - init_MUTEX(&saa->i2c_sem); - return 0; } |