[media] V4L: soc-camera: remove soc-camera bus and devices on it
[deliverable/linux.git] / drivers / media / video / ov2640.c
index 0cea0cf36679966c4c4883481ccb71333fc4bdf7..9ce2fa037b947847024b268af4b1c7387eb009f9 100644 (file)
@@ -1031,16 +1031,9 @@ static int ov2640_video_probe(struct soc_camera_device *icd,
        const char *devname;
        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) {
-               dev_err(&client->dev, "Parent missing or invalid!\n");
-               ret = -ENODEV;
-               goto err;
-       }
+       /* 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 product ID and manufacturer ID
This page took 0.025925 seconds and 5 git commands to generate.