static void omap24xxcam_reset(struct omap24xxcam_device *cam);
 static int omap24xxcam_sensor_if_enable(struct omap24xxcam_device *cam);
-static void omap24xxcam_device_unregister(struct v4l2_int_device *ctl);
+static void omap24xxcam_device_unregister(struct v4l2_int_device *s);
 static int omap24xxcam_remove(struct platform_device *pdev);
 
 /* module parameters */
  *
  */
 
-static int omap24xxcam_device_register(struct v4l2_int_device *ctl,
-                                      struct v4l2_int_device *s)
+static int omap24xxcam_device_register(struct v4l2_int_device *s)
 {
-       struct omap24xxcam_device *cam = ctl->priv;
+       struct omap24xxcam_device *cam = s->u.slave->master->priv;
        struct video_device *vfd;
        int rval;
 
        return 0;
 
 err:
-       omap24xxcam_device_unregister(ctl);
+       omap24xxcam_device_unregister(s);
 
        return rval;
 }
 
-static void omap24xxcam_device_unregister(struct v4l2_int_device *ctl)
+static void omap24xxcam_device_unregister(struct v4l2_int_device *s)
 {
-       struct omap24xxcam_device *cam = ctl->priv;
+       struct omap24xxcam_device *cam = s->u.slave->master->priv;
 
        omap24xxcam_sensor_exit(cam);