From patchwork Tue Feb 14 20:06:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiner Kallweit X-Patchwork-Id: 9572709 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 CF7D9601E7 for ; Tue, 14 Feb 2017 20:08:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CD46D26E4D for ; Tue, 14 Feb 2017 20:08:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C236C271BC; Tue, 14 Feb 2017 20:08:04 +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 787BA28415 for ; Tue, 14 Feb 2017 20:08:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754660AbdBNUIC (ORCPT ); Tue, 14 Feb 2017 15:08:02 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:33893 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754620AbdBNUHp (ORCPT ); Tue, 14 Feb 2017 15:07:45 -0500 Received: by mail-wm0-f68.google.com with SMTP id c85so5236244wmi.1 for ; Tue, 14 Feb 2017 12:07:45 -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=OwvIYxQ8njx5jkpjOIsvU5QpMofE8ggrYOYQgIUO0gA=; b=XC/l7GENUw/yW3rWCg+J1W5Uj+2qtytchoJEDCePCtLUp36sB378CYbTy0jMrpQM1h gLsV3OnL1di+hEYxPZasdq4L3tIjBbXF4szxwDfxJXk0IIaHkEotIkXmxcF8bZZZ+Spe TyIuLsS7jUX+H9eGvd+PO6yqTYx6st3eWVdyl42c7M0UwmXsqAY1VqEP+XKsfkYhMSRk MlIGK1mOp1jJNzSBM7Tw6ZePziSfU+OFGvUL8f4SDZUvnHCRMeZtQqn2tu7/Vm1GYOsJ ZxelHRikND5Rw2g1T93wMBxiOKOT7BDYHXuKSwpy0bF0u0iRQAZ4k1CVCUfyeW2nqGHT ecVw== 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=OwvIYxQ8njx5jkpjOIsvU5QpMofE8ggrYOYQgIUO0gA=; b=a8ySMeVnj6f+2BZ/mXw4m0Nc+r22f3LUhkFxEE74oYLvG90N01i5ZjQe83SwGa0lCS hwDIPh0SFk73eo7c7IdKDXqfpcwI+mPGf56sw1/d6ASJSYJrreuZBo5FK2FlSM9684eV oI3bWVZW4nsm3poivFgvpuML+p+T/zLIvQfkpR7oES6hvg3R7+a6XUni0MIPfzsog84v uZiFWO4U1udfrYMpWjzPCex4XW031nSTmwOU8eX1x/r8F80XHlV1tZJ0cuULZaaUp28k X6LcLdPyerw4VXaBwhs+e1iJsaZdnfQQFd+Vn0+OK1ZsCqtoH3ALtdy5hF4pF+6q9rtc dp3Q== X-Gm-Message-State: AMke39kPx8KheKITafzoI3p2v0uXAg1XNqT4IkJGLHzamDu4JUunIYkKfP+or2sHjVcSOw== X-Received: by 10.28.11.131 with SMTP id 125mr4641610wml.29.1487102864448; Tue, 14 Feb 2017 12:07:44 -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 v21sm216927wra.67.2017.02.14.12.07.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Feb 2017 12:07:44 -0800 (PST) From: Heiner Kallweit Subject: [PATCH 11/18] mmc: meson-gx: remove unneeded variable in meson_mmc_clk_init 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: Date: Tue, 14 Feb 2017 21:06:48 +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 Variable mux_parent_count can be replaced with constant MUX_CLK_NUM_PARENTS, so remove it. Signed-off-by: Heiner Kallweit Acked-by: Kevin Hilman --- drivers/mmc/host/meson-gx-mmc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/mmc/host/meson-gx-mmc.c b/drivers/mmc/host/meson-gx-mmc.c index 159ee7b4..d05ffe8a 100644 --- a/drivers/mmc/host/meson-gx-mmc.c +++ b/drivers/mmc/host/meson-gx-mmc.c @@ -237,7 +237,6 @@ static int meson_mmc_clk_init(struct meson_host *host) char clk_name[32]; int i, ret = 0; const char *mux_parent_names[MUX_CLK_NUM_PARENTS]; - unsigned int mux_parent_count = 0; const char *clk_div_parents[1]; u32 clk_reg, cfg; @@ -256,7 +255,6 @@ static int meson_mmc_clk_init(struct meson_host *host) } mux_parent_names[i] = __clk_get_name(host->mux_parent[i]); - mux_parent_count++; } /* create the mux */ @@ -265,7 +263,7 @@ static int meson_mmc_clk_init(struct meson_host *host) init.ops = &clk_mux_ops; init.flags = 0; init.parent_names = mux_parent_names; - init.num_parents = mux_parent_count; + init.num_parents = MUX_CLK_NUM_PARENTS; host->mux.reg = host->regs + SD_EMMC_CLOCK; host->mux.shift = CLK_SRC_SHIFT;