From patchwork Sat Feb 18 13:06:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 9581065 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 98622604A4 for ; Sat, 18 Feb 2017 13:27:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7C6FD283CA for ; Sat, 18 Feb 2017 13:27:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6E268283F3; Sat, 18 Feb 2017 13:27:10 +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=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1F014283CA for ; Sat, 18 Feb 2017 13:27:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:Date: Message-ID:From:References:To:Subject:Reply-To:Content-ID:Content-Description :Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=gkANcVsDSUGCWEW/gGVajdO8rhK1Ggl2gOH2cbTZgIs=; b=duXJEXcr87Kv1m b2WH2eB/MRBdsa6iM4egRqQXMx/w//iecYS9AjZFOWXQ8CqG3AxOxPmysq8driMazGpAsKl91oU6W H2mLX+lfZ8f7E9EGqVEjvTHmRTpwjOpuP+G0mZo/0M3yOadrFrWitfa93Uv85L+X5Vx0fCBCafpaw uK2mjDN9/87dcRVksrB7+iZg5VXnRxQvUwZUIppqxNAGLIx0LVrLLn+bDdbvZdvxBCvUZy6TOVkbO gEToUtkbvo5iEpojlYd0BQCeCnA/4b9m/HuZdv0Kc+WtnsIM3KUCmtK7egaZgg7qHVSJJA/oiJFhe Yjk72KhdiquWuwpPcpdA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cf52R-00012U-FD; Sat, 18 Feb 2017 13:26:59 +0000 Received: from mail-wr0-x244.google.com ([2a00:1450:400c:c0c::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cf52M-0000sv-E2 for linux-amlogic@lists.infradead.org; Sat, 18 Feb 2017 13:26:57 +0000 Received: by mail-wr0-x244.google.com with SMTP id q39so7752975wrb.2 for ; Sat, 18 Feb 2017 05:26:34 -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=cjdA3x+3eJGE83WfYFHP6RTd20RpcSIW/76MrLkVdkw=; b=DZE84AzQ95QHJbad2PCI3VCcpPC6+pBrKMmX+dWL4HiYa3ACVcjXhBM89u7SNNA7TK lqfe5QVObAMq3Vz71podeod0WGRKwZgkBjkK3dV7rpuXyqshqKgyrkDvFKYlWt0st4kf b6y6E0+fQt1z/Birv+qI1Y4zq3O0pOF+6/jgOULXDFYu3PmPu1gvM/o4z9ZThzsVUl/L 3U/zYfmz23VevrJsExJG1EkL+PCuDDImCTwEsj4FxCLOzCw8uxMt7JY3GoAV8nSE6Ri2 K9/3zEAzvyHu2lW1+zGL4iGC9ngC7m3nW8u08Bq9TVEZmlZyMnoRxmdXt4gP8f/7+RYV KKpA== 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=cjdA3x+3eJGE83WfYFHP6RTd20RpcSIW/76MrLkVdkw=; b=UThuKSLoRjVTo/DHDTYMpBoJpOdMDRFoTqL5XJYpYTMmbVuDbx+CL7S8hmV3XhfdXc sxX4YCWOnt6LBWaVZLHR6FvQBF2nMcL1RFnYKa/u6HSkRWWC8IT9OMPOJeub/Sr+/JL0 95Jx5B8bKKF4xonbpH5vAGanxmXIeqQCMwPWQh1QClvKOyo1AyPCmjnP7OV6YaHbO096 0AJXWFskYIadU0N1vtZVokInoBuJyfyGo1nKzjvcRQd8B+JPReSeArqkttuTKlzZ1avN AYQduA3Ht6/COtqPr/4p932nHZCsj804Y5dJzPdbqgnOfXc0KA6kIx+cWsZpcYPivsj/ odNA== X-Gm-Message-State: AMke39mM6HgKHEx3B2ZBSw+feFN7ELkQEw5PeRRguhVKSymtaY4JHxPYPPKlSHS0keazlg== X-Received: by 10.223.155.221 with SMTP id e29mr10190978wrc.107.1487424392984; Sat, 18 Feb 2017 05:26:32 -0800 (PST) Received: from ?IPv6:2003:c6:ebdc:4000:7c19:f774:dabe:f95d? (p200300C6EBDC40007C19F774DABEF95D.dip0.t-ipconnect.de. [2003:c6:ebdc:4000:7c19:f774:dabe:f95d]) by smtp.googlemail.com with ESMTPSA id o59sm16787291wrc.56.2017.02.18.05.26.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 18 Feb 2017 05:26:32 -0800 (PST) Subject: [PATCH v3 2/10] mmc: meson-gx: make two functions return void To: Ulf Hansson , Kevin Hilman References: <583f6496-68a9-b8e1-6b25-1f073f819a3c@gmail.com> From: Heiner Kallweit Message-ID: Date: Sat, 18 Feb 2017 14:06:29 +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: <583f6496-68a9-b8e1-6b25-1f073f819a3c@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170218_052654_843837_5A2BA850 X-CRM114-Status: UNSURE ( 7.38 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-amlogic@lists.infradead.org, "linux-mmc@vger.kernel.org" Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.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 --- 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)