Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4956814pxj; Wed, 9 Jun 2021 06:09:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+plhcu3kGcQL1h0mxFqSgqAruUPGOlp4fpWAi1XJ6rFS4uBrzRibHc0FU97U3C/c0PWse X-Received: by 2002:a17:906:2da1:: with SMTP id g1mr28133810eji.47.1623244151122; Wed, 09 Jun 2021 06:09:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623244151; cv=none; d=google.com; s=arc-20160816; b=SLGbvPPT7duXjFd4bZRDtOfuWQZlrftaNmCqTDHN9/9icCQaDAhjpr1SNeCIYqi2Pv DS+nSTGr+c2aCQwlilJVW22T/XXKOODRr+4cEc/pq8WewV5uR1Hkz5M90jDkQ6GbDfzF AkAGTHmYmtN0Np7w9Es6t+qF42Zv87DtqAtPQ1+ZFeFL2qiNQIP9bHc49Lsvq88vEc7k uZHbPEWsWFWfCT6CC9nsh5/r2qmNZpb961C0P6dzk3BC2XFcgB7uy7GVz69HkqyorMUw 0a/pSxBji2uGI5g8VpjT6734oam2iZ8V4pi4LfNQ4lR9GsL4ZvuVD8ELFI/LQOuXbTHr GfVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=po1ciX5BmF9mpz9y1+fjGv1kl+wkVoE+2n8rwrFdyrg=; b=vFdu8GZScULMdHcKYhSKwWo4WIXaFpk9qEKYZAU0i3bs8hhq/0Dks0aHByFmPHY6Sn 3FuodOicOb5co+2Ut4R20azziBRf6DQw/MTaUXIiQjLtdTFP7yskROqXf6A42zWIi12U /hvjscPH6PPS7xdcOWoYd4mp4oW+8DKEh0SDdRcxjfp3+AWcAgWbNDbZelxQzsgnPh3V Rwpy41IjvjBT3kyvTqK7nygFoAIXez14rH2Q6rSkY84CqWome9rehtQr1kgXlp+dQXA+ rqeN6NkQbjPAjNklV+RhWrGgmGam78+Myn9nGcQR+EnvPWNnEhJSs84olB1v5i/QVf8s QAew== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v16si2394099eds.441.2021.06.09.06.08.47; Wed, 09 Jun 2021 06:09:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236718AbhFIGUA (ORCPT + 99 others); Wed, 9 Jun 2021 02:20:00 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:5459 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236699AbhFIGT7 (ORCPT ); Wed, 9 Jun 2021 02:19:59 -0400 Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4G0H016FFQzYnT5; Wed, 9 Jun 2021 14:15:13 +0800 (CST) Received: from dggpemm500019.china.huawei.com (7.185.36.180) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Wed, 9 Jun 2021 14:18:03 +0800 Received: from ubuntu1804.huawei.com (10.67.174.98) by dggpemm500019.china.huawei.com (7.185.36.180) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Wed, 9 Jun 2021 14:18:02 +0800 From: Pu Lehui To: , , , CC: , , , , Subject: [PATCH -next] clk/qcom: Remove unused variables Date: Wed, 9 Jun 2021 14:18:48 +0800 Message-ID: <20210609061848.87415-1-pulehui@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.174.98] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpemm500019.china.huawei.com (7.185.36.180) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix gcc '-Wunused-const-variable' warnings: drivers/clk/qcom/gcc-mdm9607.c:122:37: warning: 'gcc_xo_gpll0_gpll1' defined but not used [-Wunused-const-variable=] drivers/clk/qcom/gcc-mdm9607.c:116:32: warning: 'gcc_xo_gpll0_gpll1_map' defined but not used [-Wunused-const-variable=] drivers/clk/qcom/gcc-mdm9607.c:42:37: warning: 'gcc_xo_sleep' defined but not used [-Wunused-const-variable=] drivers/clk/qcom/gcc-mdm9607.c:37:32: warning: 'gcc_xo_sleep_map' defined but not used [-Wunused-const-variable=] Let's remove them. Signed-off-by: Pu Lehui --- drivers/clk/qcom/gcc-mdm9607.c | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/drivers/clk/qcom/gcc-mdm9607.c b/drivers/clk/qcom/gcc-mdm9607.c index 5918dc51ffcd..4c9078e99bb3 100644 --- a/drivers/clk/qcom/gcc-mdm9607.c +++ b/drivers/clk/qcom/gcc-mdm9607.c @@ -34,16 +34,6 @@ enum { P_SLEEP_CLK, }; -static const struct parent_map gcc_xo_sleep_map[] = { - { P_XO, 0 }, - { P_SLEEP_CLK, 6 } -}; - -static const struct clk_parent_data gcc_xo_sleep[] = { - { .fw_name = "xo" }, - { .fw_name = "sleep_clk" }, -}; - static struct clk_alpha_pll gpll0_early = { .offset = 0x21000, .regs = clk_alpha_pll_regs[CLK_ALPHA_PLL_TYPE_DEFAULT], @@ -113,19 +103,6 @@ static struct clk_regmap gpll1_vote = { }, }; -static const struct parent_map gcc_xo_gpll0_gpll1_map[] = { - { P_XO, 0 }, - { P_GPLL0, 1 }, - { P_GPLL1, 2 }, -}; - -static const struct clk_parent_data gcc_xo_gpll0_gpll1[] = { - { .fw_name = "xo" }, - { .hw = &gpll0.clkr.hw }, - { .hw = &gpll1_vote.hw }, -}; - - static const struct parent_map gcc_xo_gpll0_gpll1_sleep_map[] = { { P_XO, 0 }, { P_GPLL0, 1 }, -- 2.17.1