diff options
author | Holger Waechtler <devnull@localhost> | 2002-10-24 16:22:57 +0000 |
---|---|---|
committer | Holger Waechtler <devnull@localhost> | 2002-10-24 16:22:57 +0000 |
commit | cb8d72ffa15172aaa26dd131610cd7d75f788330 (patch) | |
tree | 27f96630a59b575073aeff74aecb40821d3ea108 | |
parent | 77be1743afc7809a2e4d168b6a65c12630edb23d (diff) | |
download | mediapointer-dvb-s2-cb8d72ffa15172aaa26dd131610cd7d75f788330.tar.gz mediapointer-dvb-s2-cb8d72ffa15172aaa26dd131610cd7d75f788330.tar.bz2 |
changed initialisation order
-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; } |