summaryrefslogtreecommitdiff
path: root/drivers/media/video/ivtv/ivtv-fb.c
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2007-07-25 12:55:52 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-10-09 22:03:23 -0300
commit6e5eb59102aa6007d3ea2b382a1d3ca4112c272a (patch)
tree17b18f6d9851fac32dc3e49dd6cd0da6147abcc8 /drivers/media/video/ivtv/ivtv-fb.c
parentc976bc82339437e840f7dbf0b8c89c09d3fcd75e (diff)
downloadlwn-6e5eb59102aa6007d3ea2b382a1d3ca4112c272a.tar.gz
lwn-6e5eb59102aa6007d3ea2b382a1d3ca4112c272a.zip
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-fb.c')
-rw-r--r--drivers/media/video/ivtv/ivtv-fb.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/media/video/ivtv/ivtv-fb.c b/drivers/media/video/ivtv/ivtv-fb.c
index b8ad249a0b17..00765da8a6a0 100644
--- a/drivers/media/video/ivtv/ivtv-fb.c
+++ b/drivers/media/video/ivtv/ivtv-fb.c
@@ -1013,6 +1013,11 @@ static int ivtvfb_init_io(struct ivtv *itv)
{
struct osd_info *oi = itv->osd_info;
+ if (ivtv_init_on_first_open(itv)) {
+ IVTV_FB_ERR("Failed to initialize ivtv\n");
+ return -ENXIO;
+ }
+
ivtv_fb_get_framebuffer(itv, &oi->video_rbase, &oi->video_buffer_size);
/* The osd buffer size depends on the number of video buffers allocated