aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/ivtv/ivtv-fileops.c
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2007-07-25 11:55:52 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-10-09 21:03:23 -0400
commit6e5eb59102aa6007d3ea2b382a1d3ca4112c272a (patch)
tree17b18f6d9851fac32dc3e49dd6cd0da6147abcc8 /drivers/media/video/ivtv/ivtv-fileops.c
parentc976bc82339437e840f7dbf0b8c89c09d3fcd75e (diff)
V4L/DVB (5924): ivtv-fb: initializing the fb should trigger ivtv firmware load
ivtv-fb: initializing the framebuffer should trigger ivtv firmware load Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/ivtv/ivtv-fileops.c')
-rw-r--r--drivers/media/video/ivtv/ivtv-fileops.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/media/video/ivtv/ivtv-fileops.c b/drivers/media/video/ivtv/ivtv-fileops.c
index 498860841644..fedddecf661e 100644
--- a/drivers/media/video/ivtv/ivtv-fileops.c
+++ b/drivers/media/video/ivtv/ivtv-fileops.c
@@ -846,16 +846,12 @@ int ivtv_v4l2_open(struct inode *inode, struct file *filp)
846 if (itv == NULL) { 846 if (itv == NULL) {
847 /* Couldn't find a device registered 847 /* Couldn't find a device registered
848 on that minor, shouldn't happen! */ 848 on that minor, shouldn't happen! */
849 printk(KERN_WARNING "ivtv: No ivtv device found on minor %d\n", minor); 849 IVTV_WARN("No ivtv device found on minor %d\n", minor);
850 return -ENXIO; 850 return -ENXIO;
851 } 851 }
852 852
853 if (!test_and_set_bit(IVTV_F_I_INITED, &itv->i_flags)) 853 if (ivtv_init_on_first_open(itv)) {
854 if (ivtv_init_on_first_open(itv)) 854 IVTV_ERR("Failed to initialize on minor %d\n", minor);
855 set_bit(IVTV_F_I_FAILED, &itv->i_flags);
856
857 if (test_bit(IVTV_F_I_FAILED, &itv->i_flags)) {
858 printk(KERN_WARNING "ivtv: failed to initialize on minor %d\n", minor);
859 return -ENXIO; 855 return -ENXIO;
860 } 856 }
861 857