From patchwork Sat Mar 4 12:20:44 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 9603905 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 23ED8602B4 for ; Sat, 4 Mar 2017 12:39:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 117FE2843F for ; Sat, 4 Mar 2017 12:39:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 066762854F; Sat, 4 Mar 2017 12:39:01 +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 7FC6F28497 for ; Sat, 4 Mar 2017 12:39:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751682AbdCDMi7 (ORCPT ); Sat, 4 Mar 2017 07:38:59 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:35265 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751814AbdCDMi5 (ORCPT ); Sat, 4 Mar 2017 07:38:57 -0500 Received: by mail-wm0-f67.google.com with SMTP id z63so4629805wmg.2 for ; Sat, 04 Mar 2017 04:38:15 -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=7NTDk8+cwdkWM4TRu7BQfcS3YrLyTZqwtv4ZlZ0iWdg=; b=tdfHJvwU9WlwAyvll3dTS95q+AFt6iShx2a/AeKiodXiCVLoZXYGbiGFdy5nBNdzzk Kle7YaAlhj7OIKmjrHITm/fBqMkxl+yg3bGVMQfjsIaSmNs6deaMvBxTfbPUOtyQuSGB +mlSWeTHwXSxIFRVlMpMSkctzwhquSKAsZXIPIobQsOm7SIqdBVJCjca/p985la0XLF2 d12xuAgGxhKl+J1VvQ4cPS6hv3ifi5bFddaxFe83V/BGkyGRgFy6sikvbcgH0VvCMMeA 7deGbpIj5rf0vy9LX0A2ZMuPQ6LKjG55RY+gOVa+9HKLB+Vnx911Ln4vlLUjCiagNy5M QvYQ== 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=7NTDk8+cwdkWM4TRu7BQfcS3YrLyTZqwtv4ZlZ0iWdg=; b=NWGTmB7zcnjK9vtWv8VB6EzaqlfrhVN/HlrrYPU+V5/bkGquinrhyVsHvWi6C5WmPp bVO6tCE0QUOjzrGEsVMC2+ztEuDPzUTGK2ZygMxwqBgqs3vhfjsDXOdJhUGUPJcinV0U XwispkVUcblgLi3Pq+hT9qUNeBURXtNnxx8ZoluJIyUhQieta1j8HjXvALLForPPvhRn 8w3rfjHLQ+75gD8Ntq/2BrUlK1dncoLirI4vSCUryXcSP+46ar/ySMTfwY2OJpQQzo33 s7M+Kdyjeo8uUVBjZle4IxJ6AwwLrAPsgtXqWJ8p9zjI5RQaMNGivTi1YGnheWSDmHvq 3pyg== X-Gm-Message-State: AMke39nfzf4raTT/hF11Z4ZIxjQuBE5jk9vLWeUDSjB7UPjXYRBkPf6g1Skxz5mB7w0/4w== X-Received: by 10.28.130.212 with SMTP id e203mr6128686wmd.104.1488631094506; Sat, 04 Mar 2017 04:38:14 -0800 (PST) Received: from ?IPv6:2003:c6:ebdc:4000:98cd:c51c:6f4e:443? (p200300C6EBDC400098CDC51C6F4E0443.dip0.t-ipconnect.de. [2003:c6:ebdc:4000:98cd:c51c:6f4e:443]) by smtp.googlemail.com with ESMTPSA id t63sm5226291wme.16.2017.03.04.04.38.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 04 Mar 2017 04:38:14 -0800 (PST) Subject: [PATCH v5 2/10] mmc: meson-gx: make two functions return void To: Ulf Hansson , Kevin Hilman References: Cc: "linux-mmc@vger.kernel.org" , linux-amlogic@lists.infradead.org From: Heiner Kallweit Message-ID: <86e82616-1d0c-58eb-528d-705062442df4@gmail.com> Date: Sat, 4 Mar 2017 13:20:44 +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: 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 v5: - 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)