return ret;
 }
 
-static int ov6650_video_probe(struct i2c_client *client)
+static int ov6650_video_probe(struct v4l2_subdev *sd)
 {
+       struct i2c_client *client = v4l2_get_subdevdata(sd);
        struct ov6650 *priv = to_ov6650(client);
        u8              pidh, pidl, midh, midl;
        int             ret;
                return ret;
        }
 
-       ret = ov6650_s_power(&priv->subdev, 1);
+       ret = ov6650_s_power(sd, 1);
        if (ret < 0)
                goto eclkput;
 
                ret = v4l2_ctrl_handler_setup(&priv->hdl);
 
 done:
-       ov6650_s_power(&priv->subdev, 0);
+       ov6650_s_power(sd, 0);
        if (!ret)
                return 0;
 eclkput:
        .pad    = &ov6650_pad_ops,
 };
 
+static const struct v4l2_subdev_internal_ops ov6650_internal_ops = {
+       .registered = ov6650_video_probe,
+};
+
 /*
  * i2c_driver function
  */
        priv->code        = MEDIA_BUS_FMT_YUYV8_2X8;
        priv->colorspace  = V4L2_COLORSPACE_JPEG;
 
-       ret = ov6650_video_probe(client);
+       priv->subdev.internal_ops = &ov6650_internal_ops;
+       priv->subdev.flags |= V4L2_SUBDEV_FL_HAS_DEVNODE;
+
+       ret = v4l2_async_register_subdev(&priv->subdev);
        if (ret)
                v4l2_ctrl_handler_free(&priv->hdl);
 
        struct ov6650 *priv = to_ov6650(client);
 
        v4l2_clk_put(priv->clk);
-       v4l2_device_unregister_subdev(&priv->subdev);
+       v4l2_async_unregister_subdev(&priv->subdev);
        v4l2_ctrl_handler_free(&priv->hdl);
        return 0;
 }