aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/tw9910.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/tw9910.c')
-rw-r--r--drivers/media/video/tw9910.c21
1 files changed, 3 insertions, 18 deletions
diff --git a/drivers/media/video/tw9910.c b/drivers/media/video/tw9910.c
index 0347bbe36459..742482e30011 100644
--- a/drivers/media/video/tw9910.c
+++ b/drivers/media/video/tw9910.c
@@ -552,16 +552,6 @@ static int tw9910_s_std(struct v4l2_subdev *sd, v4l2_std_id norm)
552 return ret; 552 return ret;
553} 553}
554 554
555static int tw9910_enum_input(struct soc_camera_device *icd,
556 struct v4l2_input *inp)
557{
558 inp->type = V4L2_INPUT_TYPE_TUNER;
559 inp->std = V4L2_STD_UNKNOWN;
560 strcpy(inp->name, "Video");
561
562 return 0;
563}
564
565static int tw9910_g_chip_ident(struct v4l2_subdev *sd, 555static int tw9910_g_chip_ident(struct v4l2_subdev *sd,
566 struct v4l2_dbg_chip_ident *id) 556 struct v4l2_dbg_chip_ident *id)
567{ 557{
@@ -846,13 +836,9 @@ static int tw9910_video_probe(struct soc_camera_device *icd,
846 struct tw9910_priv *priv = to_tw9910(client); 836 struct tw9910_priv *priv = to_tw9910(client);
847 s32 id; 837 s32 id;
848 838
849 /* 839 /* We must have a parent by now. And it cannot be a wrong one. */
850 * We must have a parent by now. And it cannot be a wrong one. 840 BUG_ON(!icd->parent ||
851 * So this entire test is completely redundant. 841 to_soc_camera_host(icd->parent)->nr != icd->iface);
852 */
853 if (!icd->dev.parent ||
854 to_soc_camera_host(icd->dev.parent)->nr != icd->iface)
855 return -ENODEV;
856 842
857 /* 843 /*
858 * tw9910 only use 8 or 16 bit bus width 844 * tw9910 only use 8 or 16 bit bus width
@@ -891,7 +877,6 @@ static int tw9910_video_probe(struct soc_camera_device *icd,
891static struct soc_camera_ops tw9910_ops = { 877static struct soc_camera_ops tw9910_ops = {
892 .set_bus_param = tw9910_set_bus_param, 878 .set_bus_param = tw9910_set_bus_param,
893 .query_bus_param = tw9910_query_bus_param, 879 .query_bus_param = tw9910_query_bus_param,
894 .enum_input = tw9910_enum_input,
895}; 880};
896 881
897static struct v4l2_subdev_core_ops tw9910_subdev_core_ops = { 882static struct v4l2_subdev_core_ops tw9910_subdev_core_ops = {