From patchwork Fri Mar 3 19:52:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 9603419 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 5900760414 for ; Fri, 3 Mar 2017 20:00:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4B56128631 for ; Fri, 3 Mar 2017 20:00:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3FEF128633; Fri, 3 Mar 2017 20:00:43 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E142C28631 for ; Fri, 3 Mar 2017 20:00:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752025AbdCCUAm (ORCPT ); Fri, 3 Mar 2017 15:00:42 -0500 Received: from mail-wr0-f195.google.com ([209.85.128.195]:32856 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751842AbdCCUAm (ORCPT ); Fri, 3 Mar 2017 15:00:42 -0500 Received: by mail-wr0-f195.google.com with SMTP id g10so14507658wrg.0 for ; Fri, 03 Mar 2017 12:00:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=QUwGQoaS/xWGy4dtAyvbSFXwlT1OmFoQ8ZuzDi1Son0=; b=asuhQnMnLz5IKgx0oSIN666IIMVROoPQPYuazlxG2zL6d2o3PLFgYtgyHRhAIdTn/w kLgZq4+7z+6Wq6greoYXs4d2V2D7QR0rtOJqGPzVNah/BV0W0V3SH1I9RwaoPaIjDAlt H/6+UxHIi3X9icAJsRn071NIJBiPHF59lGKENV6qlcDMp7zP9sdKGGRAFfVOZqtCTD1i 5PLbo9DurHHVPUErI51M3ybY9QKKVKOu5M3SbbHGcjtWKF/AyMxf/FVg79MrdwScRkgN mwvkOXgaoyXgR1qzD2IH2W+YqkWhf7PPjV4oV+SuD2xiC6T9+IZFzA4rlReQgesyx4Rn MS2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=QUwGQoaS/xWGy4dtAyvbSFXwlT1OmFoQ8ZuzDi1Son0=; b=kbqmDfsD9zDinhJKE+U2VR/bSxGqk2TSsvDPjpTPgx2gizTEWhAcgoKmPmvHGOrm/x X2S1yzmG9FZrZnAZ+rp+q3vLviRZsoFUfZF904lPkLbKqRb08daQ83puw0OyaI42BIOC IyXbDQ4v7Z0QhbeyR1BZRV6CNxVzk+Ft6BvCW+zfb4aop3qtg5VwJt6gPI98GWyPrkBI /uzwoi52q4D4jsrz0bwAdgdjEXTLqORi1w+U67OGFKfjNDcKzxPhxucxOTfNGboVTGm4 mObj8XCv3bDNUoTg6hmJbtT01oRqqYeVXZK4ArRH1OYNvN6igVs8YmsgF+Ru3OXZxlJI FWtw== X-Gm-Message-State: AMke39mnGbmiWtaVRkri5UxLr6fsXrm+m514fR/DeyrJmnAb0XcAwMeMPK/xAsrw+EFmEg== X-Received: by 10.223.136.182 with SMTP id f51mr3938649wrf.90.1488571240381; Fri, 03 Mar 2017 12:00:40 -0800 (PST) Received: from ?IPv6:2003:c6:ebdc:4000:f903:fe11:afad:80a0? (p200300C6EBDC4000F903FE11AFAD80A0.dip0.t-ipconnect.de. [2003:c6:ebdc:4000:f903:fe11:afad:80a0]) by smtp.googlemail.com with ESMTPSA id b51sm16427483wrd.39.2017.03.03.12.00.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Mar 2017 12:00:39 -0800 (PST) Subject: [PATCH v4 2/10] mmc: meson-gx: make two functions return void To: Ulf Hansson , Kevin Hilman References: <62912f3d-2307-cfff-3c69-c8b8ffaeb474@gmail.com> Cc: "linux-mmc@vger.kernel.org" , linux-amlogic@lists.infradead.org From: Heiner Kallweit Message-ID: Date: Fri, 3 Mar 2017 20:52:43 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 MIME-Version: 1.0 In-Reply-To: <62912f3d-2307-cfff-3c69-c8b8ffaeb474@gmail.com> Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The return value of meson_mmc_request_done and meson_mmc_read_resp isn't used, so make both functions return void. Signed-off-by: Heiner Kallweit Acked-by: Kevin Hilman --- v2: - added acked-by v3: - no changes v4: - no changes --- drivers/mmc/host/meson-gx-mmc.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/drivers/mmc/host/meson-gx-mmc.c b/drivers/mmc/host/meson-gx-mmc.c index 07a7399c..b99461ff 100644 --- a/drivers/mmc/host/meson-gx-mmc.c +++ b/drivers/mmc/host/meson-gx-mmc.c @@ -426,7 +426,8 @@ static void meson_mmc_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) __func__, orig, val); } -static int meson_mmc_request_done(struct mmc_host *mmc, struct mmc_request *mrq) +static void meson_mmc_request_done(struct mmc_host *mmc, + struct mmc_request *mrq) { struct meson_host *host = mmc_priv(mmc); @@ -435,8 +436,6 @@ static int meson_mmc_request_done(struct mmc_host *mmc, struct mmc_request *mrq) host->mrq = NULL; host->cmd = NULL; mmc_request_done(host->mmc, mrq); - - return 0; } static void meson_mmc_start_cmd(struct mmc_host *mmc, struct mmc_command *cmd) @@ -554,7 +553,7 @@ static void meson_mmc_request(struct mmc_host *mmc, struct mmc_request *mrq) meson_mmc_start_cmd(mmc, mrq->cmd); } -static int meson_mmc_read_resp(struct mmc_host *mmc, struct mmc_command *cmd) +static void meson_mmc_read_resp(struct mmc_host *mmc, struct mmc_command *cmd) { struct meson_host *host = mmc_priv(mmc); @@ -566,8 +565,6 @@ static int meson_mmc_read_resp(struct mmc_host *mmc, struct mmc_command *cmd) } else if (cmd->flags & MMC_RSP_PRESENT) { cmd->resp[0] = readl(host->regs + SD_EMMC_CMD_RSP); } - - return 0; } static irqreturn_t meson_mmc_irq(int irq, void *dev_id)