]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/media/video/v4l2-common.c
i2c: Add support for custom probe function
[net-next-2.6.git] / drivers / media / video / v4l2-common.c
index 3ce7c64e57897aec0fbe81f911d742604d95872d..8ee1179be926ed16d8199e7573ad65c8adb49c23 100644 (file)
@@ -381,7 +381,8 @@ struct v4l2_subdev *v4l2_i2c_new_subdev_board(struct v4l2_device *v4l2_dev,
 
        /* Create the i2c client */
        if (info->addr == 0 && probe_addrs)
-               client = i2c_new_probed_device(adapter, info, probe_addrs);
+               client = i2c_new_probed_device(adapter, info, probe_addrs,
+                                              NULL);
        else
                client = i2c_new_device(adapter, info);