[media] exynos4-is: Print error message on timeout
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 23 Aug 2013 08:36:56 +0000 (05:36 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Sat, 24 Aug 2013 07:53:09 +0000 (04:53 -0300)
There is a stray '!' character so the error message never gets printed.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/platform/exynos4-is/fimc-is-regs.c

index cf2e13a456387a0ddd6fc20e1f1e4fe17f9004b2..f758e2694fa3f1eede8b7155fb10094e72e08a04 100644 (file)
@@ -236,7 +236,7 @@ int fimc_is_itf_mode_change(struct fimc_is *is)
        fimc_is_hw_change_mode(is);
        ret = fimc_is_wait_event(is, IS_ST_CHANGE_MODE, 1,
                                FIMC_IS_CONFIG_TIMEOUT);
-       if (!ret < 0)
+       if (ret < 0)
                dev_err(&is->pdev->dev, "%s(): mode change (%d) timeout\n",
                        __func__, is->config_index);
        return ret;