Media entity ops
  ****************************************************************************/
 
+#ifdef CONFIG_MEDIA_CONTROLLER
 static int tvp5150_link_setup(struct media_entity *entity,
                              const struct media_pad *local,
                              const struct media_pad *remote, u32 flags)
 {
-#ifdef CONFIG_MEDIA_CONTROLLER
        struct v4l2_subdev *sd = media_entity_to_v4l2_subdev(entity);
        struct tvp5150 *decoder = to_tvp5150(sd);
        int i;
        decoder->input = i;
 
        tvp5150_selmux(sd);
-#endif
 
        return 0;
 }
 static const struct media_entity_operations tvp5150_sd_media_ops = {
        .link_setup = tvp5150_link_setup,
 };
+#endif
 
 /****************************************************************************
                        I2C Command