aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/video/pvrusb2/pvrusb2-hdw.c19
1 files changed, 14 insertions, 5 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-hdw.c b/drivers/media/video/pvrusb2/pvrusb2-hdw.c
index 0e0d086bb278..c764f360a774 100644
--- a/drivers/media/video/pvrusb2/pvrusb2-hdw.c
+++ b/drivers/media/video/pvrusb2/pvrusb2-hdw.c
@@ -2020,17 +2020,26 @@ static void pvr2_hdw_load_subdev(struct pvr2_hdw *hdw,
2020 i2caddr); 2020 i2caddr);
2021 } 2021 }
2022 2022
2023 if (!sd) {
2024 pvr2_trace(PVR2_TRACE_ERROR_LEGS,
2025 "Module ID %u for device %s failed to load"
2026 " (this is probably a bad thing...)",
2027 mid, hdw->hdw_desc->description);
2028 return;
2029 }
2030
2031 /* Tag this sub-device instance with the module ID we know about.
2032 In other places we'll use that tag to determine if the instance
2033 requires special handling. */
2034 sd->grp_id = mid;
2035
2023 /* If we have both old and new i2c layers enabled, make sure that 2036 /* If we have both old and new i2c layers enabled, make sure that
2024 old layer isn't also tracking this module. This is a debugging 2037 old layer isn't also tracking this module. This is a debugging
2025 aid, in normal situations there's no reason for both mechanisms 2038 aid, in normal situations there's no reason for both mechanisms
2026 to be enabled. */ 2039 to be enabled. */
2027 pvr2_i2c_untrack_subdev(hdw, sd); 2040 pvr2_i2c_untrack_subdev(hdw, sd);
2041 pvr2_trace(PVR2_TRACE_INIT, "Attached sub-driver %s", fname);
2028 2042
2029 // ?????
2030 /* Based on module ID, we should remember subdev pointers
2031 so that we can send certain custom commands where
2032 needed. */
2033 // ?????
2034 2043
2035} 2044}
2036 2045