From patchwork Tue Oct 14 07:15:35 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 5078421 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 9A703C11AC for ; Tue, 14 Oct 2014 07:16:05 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 61436201C7 for ; Tue, 14 Oct 2014 07:16:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 898E620154 for ; Tue, 14 Oct 2014 07:16:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753749AbaJNHQA (ORCPT ); Tue, 14 Oct 2014 03:16:00 -0400 Received: from mail-lb0-f171.google.com ([209.85.217.171]:49451 "EHLO mail-lb0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754201AbaJNHP6 (ORCPT ); Tue, 14 Oct 2014 03:15:58 -0400 Received: by mail-lb0-f171.google.com with SMTP id z12so7629571lbi.2 for ; Tue, 14 Oct 2014 00:15:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=8pOiukPAt0kmjAM5x4mLKsWvkRgYRC13YFiMQEHvg+0=; b=mGyPrrWRAChE56P6NKo5FbaBaPJ8Csd854qzI/XLOdgSZQPZcsP3cRNloeh7BCR3FL 9vePF7cudC4hbshVsc1FBLODnmIF8exlkJi3kdLV9bLuCBUE5dwcP+8j95t3T8b6FCMW /4Okwg8ebPdHTt153xxvS2bRoengnVB8wq2XscVxlS3h9GiAneVvh6++tHTLUFtWSQqO WiDP3wFaJpSi7orgTNf20zjCnF+xryqEcL8huLiY7MeQspXmkZisFLAgAKqQQqygQbWl H6NFB7RpTC0G1BleEDrhcCpZok8O6meos4XiJtcKMyeAxhurtw55QYXmFQrE30s2Dw2h 690g== X-Gm-Message-State: ALoCoQnQkUCvMJjMCAs8ZlHZbMEzaIwzcan7DnFe2N6Bdx330FO1P5d6Ad2ModsItE3j+ggobeDi X-Received: by 10.112.182.1 with SMTP id ea1mr3430053lbc.16.1413270957335; Tue, 14 Oct 2014 00:15:57 -0700 (PDT) Received: from uffe-Latitude-E6430s.lan (90-231-160-185-no158.tbcn.telia.com. [90.231.160.185]) by mx.google.com with ESMTPSA id a2sm5279497lbs.21.2014.10.14.00.15.55 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 14 Oct 2014 00:15:56 -0700 (PDT) From: Ulf Hansson To: Mauro Carvalho Chehab , linux-media@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-pm@vger.kernel.org, Geert Uytterhoeven , Kevin Hilman , Tomasz Figa , Kukjin Kim , Philipp Zabel , Sylwester Nawrocki , "Rafael J. Wysocki" , Pavel Machek , Ulf Hansson Subject: [PATCH 2/7] [media] exynos-gsc: Convert gsc_m2m_resume() from int to void Date: Tue, 14 Oct 2014 09:15:35 +0200 Message-Id: <1413270940-4378-3-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1413270940-4378-1-git-send-email-ulf.hansson@linaro.org> References: <1413270940-4378-1-git-send-email-ulf.hansson@linaro.org> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Since gsc_m2m_resume() always returns 0, convert it into void instead. Signed-off-by: Ulf Hansson --- drivers/media/platform/exynos-gsc/gsc-core.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/media/platform/exynos-gsc/gsc-core.c b/drivers/media/platform/exynos-gsc/gsc-core.c index 3fca4fd..13d0226 100644 --- a/drivers/media/platform/exynos-gsc/gsc-core.c +++ b/drivers/media/platform/exynos-gsc/gsc-core.c @@ -1022,7 +1022,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; @@ -1035,8 +1035,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) @@ -1165,8 +1163,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)