diff options
-rw-r--r-- | drivers/media/video/cx88/cx88-cards.c | 1 | ||||
-rw-r--r-- | drivers/media/video/cx88/cx88-i2c.c | 6 | ||||
-rw-r--r-- | drivers/media/video/cx88/cx88.h | 1 |
3 files changed, 7 insertions, 1 deletions
diff --git a/drivers/media/video/cx88/cx88-cards.c b/drivers/media/video/cx88/cx88-cards.c index 2918a6e38fe8..658ee90db5a4 100644 --- a/drivers/media/video/cx88/cx88-cards.c +++ b/drivers/media/video/cx88/cx88-cards.c | |||
@@ -3498,6 +3498,7 @@ struct cx88_core *cx88_core_create(struct pci_dev *pci, int nr) | |||
3498 | } | 3498 | } |
3499 | 3499 | ||
3500 | cx88_card_setup(core); | 3500 | cx88_card_setup(core); |
3501 | cx88_i2c_init_ir(core); | ||
3501 | cx88_ir_init(core, pci); | 3502 | cx88_ir_init(core, pci); |
3502 | 3503 | ||
3503 | return core; | 3504 | return core; |
diff --git a/drivers/media/video/cx88/cx88-i2c.c b/drivers/media/video/cx88/cx88-i2c.c index fb39f1184558..375ad53f7961 100644 --- a/drivers/media/video/cx88/cx88-i2c.c +++ b/drivers/media/video/cx88/cx88-i2c.c | |||
@@ -181,6 +181,11 @@ int cx88_i2c_init(struct cx88_core *core, struct pci_dev *pci) | |||
181 | } else | 181 | } else |
182 | printk("%s: i2c register FAILED\n", core->name); | 182 | printk("%s: i2c register FAILED\n", core->name); |
183 | 183 | ||
184 | return core->i2c_rc; | ||
185 | } | ||
186 | |||
187 | void cx88_i2c_init_ir(struct cx88_core *core) | ||
188 | { | ||
184 | /* Instantiate the IR receiver device, if present */ | 189 | /* Instantiate the IR receiver device, if present */ |
185 | if (0 == core->i2c_rc) { | 190 | if (0 == core->i2c_rc) { |
186 | struct i2c_board_info info; | 191 | struct i2c_board_info info; |
@@ -207,7 +212,6 @@ int cx88_i2c_init(struct cx88_core *core, struct pci_dev *pci) | |||
207 | } | 212 | } |
208 | } | 213 | } |
209 | } | 214 | } |
210 | return core->i2c_rc; | ||
211 | } | 215 | } |
212 | 216 | ||
213 | /* ----------------------------------------------------------------------- */ | 217 | /* ----------------------------------------------------------------------- */ |
diff --git a/drivers/media/video/cx88/cx88.h b/drivers/media/video/cx88/cx88.h index bdb03d336536..33d161a11725 100644 --- a/drivers/media/video/cx88/cx88.h +++ b/drivers/media/video/cx88/cx88.h | |||
@@ -636,6 +636,7 @@ extern struct videobuf_queue_ops cx8800_vbi_qops; | |||
636 | /* cx88-i2c.c */ | 636 | /* cx88-i2c.c */ |
637 | 637 | ||
638 | extern int cx88_i2c_init(struct cx88_core *core, struct pci_dev *pci); | 638 | extern int cx88_i2c_init(struct cx88_core *core, struct pci_dev *pci); |
639 | extern void cx88_i2c_init_ir(struct cx88_core *core); | ||
639 | 640 | ||
640 | 641 | ||
641 | /* ----------------------------------------------------------- */ | 642 | /* ----------------------------------------------------------- */ |