aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/ov9740.c
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>2011-07-15 19:03:38 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-07-27 16:56:08 -0400
commit7dfff95366f48bf66f77c17cdc9ebd8be696ac5d (patch)
treec4cb975f5b8b8c3008921d38fa6e4deed9c8dbc9 /drivers/media/video/ov9740.c
parentd33b290a149dafe2e3cc2901ec726bea09a2c0f4 (diff)
[media] V4L: soc-camera: remove soc-camera bus and devices on it
Now that v4l2 subdevices have got their own device objects, having one more device in soc-camera clients became redundant and confusing. This patch removes those devices and the soc-camera bus, they used to reside on. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Acked-by: Paul Mundt <lethal@linux-sh.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/ov9740.c')
-rw-r--r--drivers/media/video/ov9740.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/drivers/media/video/ov9740.c b/drivers/media/video/ov9740.c
index ede48f2ed70c..edd1ffcca30b 100644
--- a/drivers/media/video/ov9740.c
+++ b/drivers/media/video/ov9740.c
@@ -898,16 +898,9 @@ static int ov9740_video_probe(struct soc_camera_device *icd,
898 u8 modelhi, modello; 898 u8 modelhi, modello;
899 int ret; 899 int ret;
900 900
901 /* 901 /* We must have a parent by now. And it cannot be a wrong one. */
902 * We must have a parent by now. And it cannot be a wrong one. 902 BUG_ON(!icd->parent ||
903 * So this entire test is completely redundant. 903 to_soc_camera_host(icd->parent)->nr != icd->iface);
904 */
905 if (!icd->dev.parent ||
906 to_soc_camera_host(icd->dev.parent)->nr != icd->iface) {
907 dev_err(&client->dev, "Parent missing or invalid!\n");
908 ret = -ENODEV;
909 goto err;
910 }
911 904
912 /* 905 /*
913 * check and show product ID and manufacturer ID 906 * check and show product ID and manufacturer ID