[media] V4L: soc-camera: remove soc-camera bus and devices on it
[deliverable/linux.git] / drivers / media / video / mt9m111.c
index 7962334a386bfb52ba7993381ecd4e7723087dbe..cbccc869c7e18612ff35047f08e116a7b42cd364 100644 (file)
@@ -960,13 +960,9 @@ static int mt9m111_video_probe(struct soc_camera_device *icd,
        s32 data;
        int ret;
 
-       /*
-        * We must have a parent by now. And it cannot be a wrong one.
-        * So this entire test is completely redundant.
-        */
-       if (!icd->dev.parent ||
-           to_soc_camera_host(icd->dev.parent)->nr != icd->iface)
-               return -ENODEV;
+       /* We must have a parent by now. And it cannot be a wrong one. */
+       BUG_ON(!icd->parent ||
+              to_soc_camera_host(icd->parent)->nr != icd->iface);
 
        mt9m111->autoexposure = 1;
        mt9m111->autowhitebalance = 1;
This page took 0.039066 seconds and 5 git commands to generate.