Merge tag 'mmc-v4.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc
[cascardo/linux.git] / drivers / media / platform / s5p-mfc / s5p_mfc_dec.c
index 47c997d..52081dd 100644 (file)
@@ -776,11 +776,12 @@ static int vidioc_g_crop(struct file *file, void *priv,
        u32 left, right, top, bottom;
 
        if (ctx->state != MFCINST_HEAD_PARSED &&
-       ctx->state != MFCINST_RUNNING && ctx->state != MFCINST_FINISHING
-                                       && ctx->state != MFCINST_FINISHED) {
-                       mfc_err("Cannont set crop\n");
-                       return -EINVAL;
-               }
+           ctx->state != MFCINST_RUNNING &&
+           ctx->state != MFCINST_FINISHING &&
+           ctx->state != MFCINST_FINISHED) {
+               mfc_err("Can not get crop information\n");
+               return -EINVAL;
+       }
        if (ctx->src_fmt->fourcc == V4L2_PIX_FMT_H264) {
                left = s5p_mfc_hw_call(dev->mfc_ops, get_crop_info_h, ctx);
                right = left >> S5P_FIMV_SHARED_CROP_RIGHT_SHIFT;