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: 9572717 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 C3D91601E7 for ; Tue, 14 Feb 2017 20:08:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C1876271BC for ; Tue, 14 Feb 2017 20:08:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B63A926E4D; Tue, 14 Feb 2017 20:08:08 +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 5C5F026E4D for ; Tue, 14 Feb 2017 20:08:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754599AbdBNUIH (ORCPT ); Tue, 14 Feb 2017 15:08:07 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:36692 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752992AbdBNUIB (ORCPT ); Tue, 14 Feb 2017 15:08:01 -0500 Received: by mail-wm0-f66.google.com with SMTP id r18so5221816wmd.3 for ; Tue, 14 Feb 2017 12:07:50 -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=SSIloUH96qOBGc2DKEkLDE6l52Qs26silmIF09FSN8ulAF86EUgDCwugPx0yiHEfq9 Zzm1idU5pI8RI7cBYGrl2hgmyOVtF7B/9exCUuUGimbtsk4RRxcTgK6BbXwkRr0UinzY V3w+NCdz2bbxubwWDsUoFBVYHnnBhee34ulHrTLPAa5vgGZvQyY8Y4VU/gmxPoALVa4R lyP8xUnjUGTAeQ6vtGmXkQQBAeHIWvSLwNpkEzmO6N1cpvpZE5nkPD40kfDlSjfUm28h wl7JSFmHdVYGaMWqFjzT3Dow18Ux6OVFK4sl7HYwdVVAu8f75B5v/c2ogMhR9atGdvpB ZjYw== X-Gm-Message-State: AMke39kWYqJeT+Gw+vG1ktzJjA00ZJMAcRsJe0lf6sYs3dyFuJyo63rlcCWraZmawqZ+aQ== 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> Cc: Carlo Caione , "linux-mmc@vger.kernel.org" , linux-amlogic@lists.infradead.org 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> 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 --- 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)