[media] exynos-gsc: Convert gsc_m2m_resume() from int to void
authorUlf Hansson <[email protected]>
Wed, 9 Nov 2016 14:23:51 +0000 (12:23 -0200)
committerMauro Carvalho Chehab <[email protected]>
Wed, 16 Nov 2016 18:30:45 +0000 (16:30 -0200)
Since gsc_m2m_resume() always returns 0, convert it to a void instead.

[mszyprow: rebased onto v4.9-rc4]

Signed-off-by: Ulf Hansson <[email protected]>
Signed-off-by: Marek Szyprowski <[email protected]>
Tested-by: Javier Martinez Canillas <[email protected]>
Signed-off-by: Sylwester Nawrocki <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
drivers/media/platform/exynos-gsc/gsc-core.c

index 183c6e4e915f015a46953db260cf100430e10f6b..945042c346e731646f9f34b2bf8a4ffb5f9f74f6 100644 (file)
@@ -1023,7 +1023,7 @@ static int gsc_m2m_suspend(struct gsc_dev *gsc)
        return timeout == 0 ? -EAGAIN : 0;
 }
 
-static int gsc_m2m_resume(struct gsc_dev *gsc)
+static void gsc_m2m_resume(struct gsc_dev *gsc)
 {
        struct gsc_ctx *ctx;
        unsigned long flags;
@@ -1036,8 +1036,6 @@ static int gsc_m2m_resume(struct gsc_dev *gsc)
 
        if (test_and_clear_bit(ST_M2M_SUSPENDED, &gsc->state))
                gsc_m2m_job_finish(ctx, VB2_BUF_STATE_ERROR);
-
-       return 0;
 }
 
 static int gsc_probe(struct platform_device *pdev)
@@ -1159,8 +1157,9 @@ static int gsc_runtime_resume(struct device *dev)
 
        gsc_hw_set_sw_reset(gsc);
        gsc_wait_reset(gsc);
+       gsc_m2m_resume(gsc);
 
-       return gsc_m2m_resume(gsc);
+       return 0;
 }
 
 static int gsc_runtime_suspend(struct device *dev)