diff options
Diffstat (limited to 'drivers/media/video/pvrusb2/pvrusb2-hdw.c')
-rw-r--r-- | drivers/media/video/pvrusb2/pvrusb2-hdw.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-hdw.c b/drivers/media/video/pvrusb2/pvrusb2-hdw.c index 7a65b42a4f53..d9d974a8f52a 100644 --- a/drivers/media/video/pvrusb2/pvrusb2-hdw.c +++ b/drivers/media/video/pvrusb2/pvrusb2-hdw.c | |||
@@ -2039,7 +2039,7 @@ static int pvr2_hdw_load_subdev(struct pvr2_hdw *hdw, | |||
2039 | "Module ID %u:" | 2039 | "Module ID %u:" |
2040 | " Setting up with specified i2c address 0x%x", | 2040 | " Setting up with specified i2c address 0x%x", |
2041 | mid, i2caddr[0]); | 2041 | mid, i2caddr[0]); |
2042 | sd = v4l2_i2c_new_subdev(&hdw->i2c_adap, | 2042 | sd = v4l2_i2c_new_subdev(&hdw->v4l2_dev, &hdw->i2c_adap, |
2043 | fname, fname, | 2043 | fname, fname, |
2044 | i2caddr[0]); | 2044 | i2caddr[0]); |
2045 | } else { | 2045 | } else { |
@@ -2047,7 +2047,7 @@ static int pvr2_hdw_load_subdev(struct pvr2_hdw *hdw, | |||
2047 | "Module ID %u:" | 2047 | "Module ID %u:" |
2048 | " Setting up with address probe list", | 2048 | " Setting up with address probe list", |
2049 | mid); | 2049 | mid); |
2050 | sd = v4l2_i2c_new_probed_subdev(&hdw->i2c_adap, | 2050 | sd = v4l2_i2c_new_probed_subdev(&hdw->v4l2_dev, &hdw->i2c_adap, |
2051 | fname, fname, | 2051 | fname, fname, |
2052 | i2caddr); | 2052 | i2caddr); |
2053 | } | 2053 | } |
@@ -2185,7 +2185,7 @@ static void pvr2_hdw_setup_low(struct pvr2_hdw *hdw) | |||
2185 | pvr2_hdw_load_modules(hdw); | 2185 | pvr2_hdw_load_modules(hdw); |
2186 | if (!pvr2_hdw_dev_ok(hdw)) return; | 2186 | if (!pvr2_hdw_dev_ok(hdw)) return; |
2187 | 2187 | ||
2188 | v4l2_device_call_all(&hdw->v4l2_dev, 0, core, init, 0); | 2188 | v4l2_device_call_all(&hdw->v4l2_dev, 0, core, load_fw); |
2189 | 2189 | ||
2190 | for (idx = 0; idx < CTRLDEF_COUNT; idx++) { | 2190 | for (idx = 0; idx < CTRLDEF_COUNT; idx++) { |
2191 | cptr = hdw->controls + idx; | 2191 | cptr = hdw->controls + idx; |
@@ -2574,7 +2574,7 @@ struct pvr2_hdw *pvr2_hdw_create(struct usb_interface *intf, | |||
2574 | hdw->ctl_read_urb = usb_alloc_urb(0,GFP_KERNEL); | 2574 | hdw->ctl_read_urb = usb_alloc_urb(0,GFP_KERNEL); |
2575 | if (!hdw->ctl_read_urb) goto fail; | 2575 | if (!hdw->ctl_read_urb) goto fail; |
2576 | 2576 | ||
2577 | if (v4l2_device_register(&usb_dev->dev, &hdw->v4l2_dev) != 0) { | 2577 | if (v4l2_device_register(&intf->dev, &hdw->v4l2_dev) != 0) { |
2578 | pvr2_trace(PVR2_TRACE_ERROR_LEGS, | 2578 | pvr2_trace(PVR2_TRACE_ERROR_LEGS, |
2579 | "Error registering with v4l core, giving up"); | 2579 | "Error registering with v4l core, giving up"); |
2580 | goto fail; | 2580 | goto fail; |
@@ -2926,6 +2926,7 @@ static void pvr2_subdev_update(struct pvr2_hdw *hdw) | |||
2926 | pvr2_trace(PVR2_TRACE_CHIPS, "subdev tuner set_type(%d)", | 2926 | pvr2_trace(PVR2_TRACE_CHIPS, "subdev tuner set_type(%d)", |
2927 | hdw->tuner_type); | 2927 | hdw->tuner_type); |
2928 | if (((int)(hdw->tuner_type)) >= 0) { | 2928 | if (((int)(hdw->tuner_type)) >= 0) { |
2929 | memset(&setup, 0, sizeof(setup)); | ||
2929 | setup.addr = ADDR_UNSET; | 2930 | setup.addr = ADDR_UNSET; |
2930 | setup.type = hdw->tuner_type; | 2931 | setup.type = hdw->tuner_type; |
2931 | setup.mode_mask = T_RADIO | T_ANALOG_TV; | 2932 | setup.mode_mask = T_RADIO | T_ANALOG_TV; |
@@ -2943,7 +2944,7 @@ static void pvr2_subdev_update(struct pvr2_hdw *hdw) | |||
2943 | v4l2_std_id vs; | 2944 | v4l2_std_id vs; |
2944 | vs = hdw->std_mask_cur; | 2945 | vs = hdw->std_mask_cur; |
2945 | v4l2_device_call_all(&hdw->v4l2_dev, 0, | 2946 | v4l2_device_call_all(&hdw->v4l2_dev, 0, |
2946 | tuner, s_std, vs); | 2947 | core, s_std, vs); |
2947 | } | 2948 | } |
2948 | hdw->tuner_signal_stale = !0; | 2949 | hdw->tuner_signal_stale = !0; |
2949 | hdw->cropcap_stale = !0; | 2950 | hdw->cropcap_stale = !0; |