From patchwork Tue Feb 14 20:06:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 9572733 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 E142B601E7 for ; Tue, 14 Feb 2017 20:08:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DB2B02840E for ; Tue, 14 Feb 2017 20:08:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D010528415; Tue, 14 Feb 2017 20:08:20 +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 8F60C26E4D for ; Tue, 14 Feb 2017 20:08:20 +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:References:To:Subject:From:Reply-To:Content-ID:Content-Description :Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=iGoot/t06mLq1eIxyVwzrNpP+rh5yIxrac3cCVWrGT0=; b=l2sU2k5IG3NRIY YHvvQ/RtO7aXz9vdnGwvWBwL04B5Ey5ycRDL3OigkqxlbYnYgZoImzynxt6chwuz/p/6JIWsinPv9 c3YLbf576rD2uzQn/t3oCt9Aur4Ir+LEGJjZyWBHuXdcCWzm1K5xYyqde/RY/K9athn5HweKguxqK IBhcoKf1xGdsP2LEZeJtcsjr0NidKG7VMfcF7XFKf2XVsN/zl2W2ZP7fImrTN/alMUk2yYMdqL0VW fdFuWF1MjielP+PYoMDqa+RBlFBa5sfdxSMucmm8QGDmbtru3dyMyfXxDDLXV3pgmMdyEv2lTWW5W net7/pMs/846vxbi5Lvw==; 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 1cdjOT-00023E-GL; Tue, 14 Feb 2017 20:08:09 +0000 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cdjOJ-0001lF-BR for linux-amlogic@lists.infradead.org; Tue, 14 Feb 2017 20:08:03 +0000 Received: by mail-wm0-x244.google.com with SMTP id v77so5209643wmv.0 for ; Tue, 14 Feb 2017 12:07:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:subject:to:references:cc:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=teY3fOBElriulu1Ok2w9WvZW8M2kx9syaia8X8Gr1xQ=; b=vRczP+ca1n9U/ADTPKi47HPg1NzWvIAVMvvL8x8ioM5CmRuoQS25YEvgzHOX/9mqrd eCGz4BdBsHmTaeA8RCcJ2ECRW0SKAZAymJJ5CsRGpCeG/ZHIx1JmIZZBvHzRpf1NuVCx OIEEfYwmgXu5WoCa5rU9Fd4bOjF8TzdHSUl/qBXHZG/qV7rg923SlabKzSBkk2eNblUJ 7weG+dCBEswJEaYRCrEE9DlB0rPiReCbBvNwIGgXXuwjMHPOon033W2q0noUOuiMj1Jb T3CalLMr0BmVDJAkgSBUHUunuq2B+yI7yLLOCX0vWQouk6cB8c4/3yagrazJ6QGihcrn HK4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:references:cc:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=teY3fOBElriulu1Ok2w9WvZW8M2kx9syaia8X8Gr1xQ=; b=ZJVVSrj708CawJcEDz930Y/Wptw+O5wSt1tHEcC7aXuy4OD1DBV1fmWYnxRaQKcAvP iLP6QYVASNSQZRIreB4bXEJzwN//bxTb4lRVBpsCRRVQCDpPQMDPebba3f96Xv13P1m8 NKkQ+jGzNNi1y21lvf+MwnKYbCZoZXb3EriAy7Nl/E2R+QuWOp/gQvlZGx9oQ6IHRd4h DmaEEb113y6bBCApGtiZ5CK8NVaL9gjT7/hv6egqu11pcYK/alNqVfqfHCHA0+1+QW1M A4ExcCY2+uNAs0azn6ONyHEZA2kqEwhomDzJtMbEFBhlKaY9O+f6BYxmrm51e9Voa7az +YzQ== X-Gm-Message-State: AMke39k6AXYTblKpoCozrmczTBwQYmkE/XPMQCK3+5SiQC3ZqPYRoWXuUBPjXGonyLzWLA== X-Received: by 10.28.158.74 with SMTP id h71mr5123318wme.59.1487102860135; Tue, 14 Feb 2017 12:07:40 -0800 (PST) Received: from ?IPv6:2003:c6:ebdc:4000:9533:a20:55f1:fb4b? (p200300C6EBDC400095330A2055F1FB4B.dip0.t-ipconnect.de. [2003:c6:ebdc:4000:9533:a20:55f1:fb4b]) by smtp.googlemail.com with ESMTPSA id b10sm4731723wmi.34.2017.02.14.12.07.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Feb 2017 12:07:39 -0800 (PST) From: Heiner Kallweit Subject: [PATCH 08/18] mmc: meson-gx: make two functions return void To: Ulf Hansson , Kevin Hilman References: <420b75a9-b8c2-b3d7-ae60-3ed8a5a18ead@gmail.com> Message-ID: <65a6f6a8-b650-81e9-2b3c-85d3dc89b9ba@gmail.com> Date: Tue, 14 Feb 2017 21:06:35 +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: <420b75a9-b8c2-b3d7-ae60-3ed8a5a18ead@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170214_120759_875810_227A6C0E X-CRM114-Status: UNSURE ( 7.82 ) 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: Carlo Caione , 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 --- 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 f3963538..a67c811e 100644 --- a/drivers/mmc/host/meson-gx-mmc.c +++ b/drivers/mmc/host/meson-gx-mmc.c @@ -421,7 +421,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); @@ -430,8 +431,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) @@ -537,7 +536,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); @@ -549,8 +548,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)