[media] V4L: soc-camera: remove soc-camera bus and devices on it
[deliverable/linux.git] / drivers / media / video / mt9t112.c
index bffa9ee10968e315172b1cc4678d3c2e1c0397b5..d2e0a50063a269e54987f7d3e9e5221855786c2e 100644 (file)
@@ -1057,13 +1057,9 @@ static int mt9t112_camera_probe(struct soc_camera_device *icd,
        const char          *devname;
        int                  chipid;
 
-       /*
-        * 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);
 
        /*
         * check and show chip ID
This page took 0.029793 seconds and 5 git commands to generate.