Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3797847pxb; Tue, 26 Jan 2021 05:13:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJy8irwxbaCUjXQhWzk5WsRiI/SDgFCYvbcMoQJPbyRIQ/RyqnQWioxlaPI++jauOuiERtVI X-Received: by 2002:a17:906:1d1a:: with SMTP id n26mr3520126ejh.481.1611666781220; Tue, 26 Jan 2021 05:13:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611666781; cv=none; d=google.com; s=arc-20160816; b=0MZnEBpzDvR6DUULMoFQsWgfxvmZKrZdKIpk6dVHKsola3UvYYoQMoxlr9wXjR9Sge hc+QQ2ibQvgbOCrQRvCA7/A9PatIiCfrFuBt3TeIeN34USBj//reEaGnz0zvxctBrkxU dTgrs3e+3VCsQB3qjF4e5siLls0uJxsqNx5eBeeWtkAQ58eG+ekuQaYjNMsuc+fQnm0u 7qGPtw0AOfotNKyTysTsluAsOHoiVsFUNGNZa/PsFt6kptNId33cQS5VvmEwAf+6L59L rqd/od5Asug7Mbr75Pr+WAx/yZ+bFE2rK8fStGpKnMKWr6zlsUYGQa/rS0f3uZs9ZlgV 7vFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=ACuhHqUyAOgeit1pJS1MxY6/38vCSWpT3UKaTx8+/JY=; b=lP9Q0H9EvMrt8Ccu6trE+je1vVN0NHVF/g9YekjdVJCRqgEO5gD4Ms7Y4xyZOJjfKk LJU69KIlGuAaxtP3qtrv37ASuAMksaDRrhd1T8P1iX3gRKambcN+OIoDKM6voLsvPRrj 5+5oAZieksV/GBgpgBVebrvOAS+NegWvuV5b1TE/NynEaskAmPfmJ+AQBSHAMuPogQsP K+MyRIzjZxo/7CpH6iHJkpLpyfUIBnHVDInnGBJbPRFD4TZlx4pcbAUKLRFKyGBsiAvC 5QL60bkHyvHnyhYndauT33Bw8nZ6GsyE7e36oZXMTkALNnzd24IfJDaMoplb94eZKhPS l1ag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fM8B1mFx; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u24si6972473ejb.527.2021.01.26.05.12.36; Tue, 26 Jan 2021 05:13:01 -0800 (PST) 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; dkim=pass header.i=@linaro.org header.s=google header.b=fM8B1mFx; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392658AbhAZNKO (ORCPT + 99 others); Tue, 26 Jan 2021 08:10:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391959AbhAZMsy (ORCPT ); Tue, 26 Jan 2021 07:48:54 -0500 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45674C03542E for ; Tue, 26 Jan 2021 04:46:07 -0800 (PST) Received: by mail-wm1-x32b.google.com with SMTP id f16so2324755wmq.5 for ; Tue, 26 Jan 2021 04:46:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ACuhHqUyAOgeit1pJS1MxY6/38vCSWpT3UKaTx8+/JY=; b=fM8B1mFx2eVpjNGE3vhWFZC0WnRAysxKHxe+DAlNp0M68o88FbxPu79MK7N6KiE2w6 9Xz6u4qdahy0LI9WhaFK/lyoXeoeyTIRv3jDEuQ+1axa99t2wwYOv3R4ZYP7Nf33NHcF h/ifupziL/bRk8bMH6nIbZRqrxAaPuu8HhFAWxW4P1w0jDAp4QjTtN/sMy8BVDVsBKeJ 5XqZMH2ZHCMbswWDflwfuj2IwwEkK5sK41ABrUURUYOQM0CqIeNKuZ/QR+TlG/5OyQY4 UAK2fLKyhInTzveMOSTFN0HX58oaY6FSzzY0nRCsLMpkwG8QaNeop7L+F9Ub+d7NkC/G +g1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ACuhHqUyAOgeit1pJS1MxY6/38vCSWpT3UKaTx8+/JY=; b=qPcvpOzdGx3/6mRcCAWLVUhAFumtyaTEtRr/z4bmei2hMuoUV1MNHIWDpkL2B54A1L APQsr2BKnxV9cGi70M6CQAHO0TMwYSA1qlnCUIZqXhEAMCgvv2tgEFYCLLPlvkJjDNfr mReIPs3MkCdEbH4WDGxVurmG8zL2mdY6RRbJaW4IlVXDeqgULfXXkBQSn4qF3UpgZCsp Egwr02p9v59ffFcJrjwugY3wpLPIt9StQ+5TYgpACSkHIVQVrnALAd6kksmdCBfVGeGL HnrfV4RjjWbMV6tcEQJ1osfK+OhUb11rn5MLhErv2xTCwTc5gorA3Y3l/EOFm344udd9 ECpQ== X-Gm-Message-State: AOAM532IqUdb6VbBqS8P1zyVZ7wHM0YkkqDaBpzDGrevfCiaEfa9iLCP YeKYOjFnUi9cr2PvvoWqsHgM7A== X-Received: by 2002:a1c:f706:: with SMTP id v6mr4569286wmh.85.1611665166044; Tue, 26 Jan 2021 04:46:06 -0800 (PST) Received: from dell.default ([91.110.221.188]) by smtp.gmail.com with ESMTPSA id i131sm3263073wmi.25.2021.01.26.04.46.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Jan 2021 04:46:05 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Andy Gross , Bjorn Andersson , Michael Turquette , Stephen Boyd , linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org Subject: [PATCH 18/21] clk: qcom: clk-rpm: Remove a bunch of superfluous code Date: Tue, 26 Jan 2021 12:45:37 +0000 Message-Id: <20210126124540.3320214-19-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210126124540.3320214-1-lee.jones@linaro.org> References: <20210126124540.3320214-1-lee.jones@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/clk/qcom/clk-rpm.c:453:29: warning: ‘clk_rpm_branch_ops’ defined but not used [-Wunused-const-variable=] Cc: Andy Gross Cc: Bjorn Andersson Cc: Michael Turquette Cc: Stephen Boyd Cc: linux-arm-msm@vger.kernel.org Cc: linux-clk@vger.kernel.org Signed-off-by: Lee Jones --- drivers/clk/qcom/clk-rpm.c | 63 -------------------------------------- 1 file changed, 63 deletions(-) diff --git a/drivers/clk/qcom/clk-rpm.c b/drivers/clk/qcom/clk-rpm.c index f71d228fd6bd5..a18811c380187 100644 --- a/drivers/clk/qcom/clk-rpm.c +++ b/drivers/clk/qcom/clk-rpm.c @@ -73,62 +73,6 @@ }, \ } -#define DEFINE_CLK_RPM_PXO_BRANCH(_platform, _name, _active, r_id, r) \ - static struct clk_rpm _platform##_##_active; \ - static struct clk_rpm _platform##_##_name = { \ - .rpm_clk_id = (r_id), \ - .active_only = true, \ - .peer = &_platform##_##_active, \ - .rate = (r), \ - .branch = true, \ - .hw.init = &(struct clk_init_data){ \ - .ops = &clk_rpm_branch_ops, \ - .name = #_name, \ - .parent_names = (const char *[]){ "pxo_board" }, \ - .num_parents = 1, \ - }, \ - }; \ - static struct clk_rpm _platform##_##_active = { \ - .rpm_clk_id = (r_id), \ - .peer = &_platform##_##_name, \ - .rate = (r), \ - .branch = true, \ - .hw.init = &(struct clk_init_data){ \ - .ops = &clk_rpm_branch_ops, \ - .name = #_active, \ - .parent_names = (const char *[]){ "pxo_board" }, \ - .num_parents = 1, \ - }, \ - } - -#define DEFINE_CLK_RPM_CXO_BRANCH(_platform, _name, _active, r_id, r) \ - static struct clk_rpm _platform##_##_active; \ - static struct clk_rpm _platform##_##_name = { \ - .rpm_clk_id = (r_id), \ - .peer = &_platform##_##_active, \ - .rate = (r), \ - .branch = true, \ - .hw.init = &(struct clk_init_data){ \ - .ops = &clk_rpm_branch_ops, \ - .name = #_name, \ - .parent_names = (const char *[]){ "cxo_board" }, \ - .num_parents = 1, \ - }, \ - }; \ - static struct clk_rpm _platform##_##_active = { \ - .rpm_clk_id = (r_id), \ - .active_only = true, \ - .peer = &_platform##_##_name, \ - .rate = (r), \ - .branch = true, \ - .hw.init = &(struct clk_init_data){ \ - .ops = &clk_rpm_branch_ops, \ - .name = #_active, \ - .parent_names = (const char *[]){ "cxo_board" }, \ - .num_parents = 1, \ - }, \ - } - #define to_clk_rpm(_hw) container_of(_hw, struct clk_rpm, hw) struct rpm_cc; @@ -450,13 +394,6 @@ static const struct clk_ops clk_rpm_ops = { .recalc_rate = clk_rpm_recalc_rate, }; -static const struct clk_ops clk_rpm_branch_ops = { - .prepare = clk_rpm_prepare, - .unprepare = clk_rpm_unprepare, - .round_rate = clk_rpm_round_rate, - .recalc_rate = clk_rpm_recalc_rate, -}; - /* MSM8660/APQ8060 */ DEFINE_CLK_RPM(msm8660, afab_clk, afab_a_clk, QCOM_RPM_APPS_FABRIC_CLK); DEFINE_CLK_RPM(msm8660, sfab_clk, sfab_a_clk, QCOM_RPM_SYS_FABRIC_CLK); -- 2.25.1