From: Mike Isely Date: Sat, 7 Mar 2009 04:59:34 +0000 (-0300) Subject: V4L/DVB (11195): pvrusb2: Issue required core init broadcast to all sub-devices X-Git-Tag: 2.1b_release~13690^2~96 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5c6cb4e2512fa50693a28a2edefdaa5cf6c10950;p=platform%2Fkernel%2Fkernel-mfld-blackbay.git V4L/DVB (11195): pvrusb2: Issue required core init broadcast to all sub-devices The v4l2-subdev infrastructure requires that an initialization call must be issued to all attached sub-devices before normal operation can start. This change satisfies that requirement. Signed-off-by: Mike Isely Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/pvrusb2/pvrusb2-hdw.c b/drivers/media/video/pvrusb2/pvrusb2-hdw.c index 1fb9ca5..bd46b40 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-hdw.c +++ b/drivers/media/video/pvrusb2/pvrusb2-hdw.c @@ -2208,6 +2208,8 @@ static void pvr2_hdw_setup_low(struct pvr2_hdw *hdw) pvr2_hdw_load_modules(hdw); if (!pvr2_hdw_dev_ok(hdw)) return; + v4l2_device_call_all(&hdw->v4l2_dev, 0, core, init, 0); + for (idx = 0; idx < CTRLDEF_COUNT; idx++) { cptr = hdw->controls + idx; if (cptr->info->skip_init) continue;