Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp839734ybg; Tue, 9 Jun 2020 14:21:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwzafxJkXP6buwlVgehxBjiqKSVGCzyeV4MFS7KGczBz5pPmXRat4st/t2IBAjziCq6P/xp X-Received: by 2002:a17:907:4240:: with SMTP id oi24mr312200ejb.127.1591737666547; Tue, 09 Jun 2020 14:21:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591737666; cv=none; d=google.com; s=arc-20160816; b=rdbtc3H+7La/xNXYQuHEP1quNcvNaCivZWQ9YyZHabSq6Qkp8Fm2ZFqvjZTYbFP6lG LoIOGYfFbErOYrOvYqmhspH5Lclbpi4AyAK9CJAHFuVlXkjLIGdQbeUMHjLnEvP5rZhd ParlNS+IskbpVgNYUMrP6/Yb2Oi+FHKdVDO+o63HhK7FXBoNkjm3q66zFREpKfkXqEtV mm3pckz1rPZjAHa2+ew5YLFUw4gobMDbc/0Sfu8mP5iaz/XdwjKiSSjyoy1uX+tdDj9/ 99BNB6iqnLaZTdPWVG7P+zVBRGO1szDvicNjd9PWfus/jCChXaTXKseAoxyKi0IaO7LS M2rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=YPub7KMhU0pTmtKf/Zj4M9hIfBT5+fftNfmspxnzaq8=; b=V9U3oBQBIhyv876aBlxIavzVbMoYkg920uJgLvqIm9Jd+JfYgz7WwQ2/qwGfTZHsbr eEfSwaSS5D/EUQaMkZPwXUhZ5GDV8nJYw5d+u67IEyCuWE+klzVnXy3PAwkmyqKzG4L3 k7Unrs0cn9CP0l0zofXVS3WxYwCBYhN+K5bP3gUjjkL9w7C2dAIrx4WJW8UW0ngteKyb q3M+k4X9BhaTXmzaDDU91lAr7WP6ZR4ykAqxVvSGCLMqYTDiGw9oA80itQlm12HD2h+k TWTqJVOP6yK4uFimad5MXPSZJjmIizygjUoFyHbvDQopaCNNbqDGjH3D1rZx6Sc+YDbj 4/WA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=PKwO2PIk; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i9si11413565ejg.564.2020.06.09.14.20.43; Tue, 09 Jun 2020 14:21:06 -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; dkim=pass header.i=@kernel.org header.s=default header.b=PKwO2PIk; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727012AbgFIVSt (ORCPT + 99 others); Tue, 9 Jun 2020 17:18:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:41578 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725894AbgFIVSs (ORCPT ); Tue, 9 Jun 2020 17:18:48 -0400 Received: from mail.kernel.org (unknown [104.132.0.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EB929206D5; Tue, 9 Jun 2020 21:18:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591737528; bh=R6TTuWXnKhUWq0RBVhFAzzNL9AjdNgHgPZzhhyArsVc=; h=From:To:Cc:Subject:Date:From; b=PKwO2PIkTqmblopwvtRWKwd6CN4x1Tj/UKMOUwlcNDh/LZ1d+ure4gPUnY9EkSLbl Zx46Cskf/XYR6BxzobplrMVnTwM4E/jNsomRdrYTb+SZEJDeJ/PGbJavFGQvyjxn4F gTFdZsydvyETG8oKitHODNNpM4r3vn82POtApYU0= From: Stephen Boyd To: Michael Turquette , Stephen Boyd Cc: linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Owen Chen , Mars Cheng , Macpaul Lin , kbuild test robot Subject: [PATCH] clk: mediatek: Remove ifr{0,1}_cfg_regs structures Date: Tue, 9 Jun 2020 14:18:47 -0700 Message-Id: <20200609211847.27366-1-sboyd@kernel.org> X-Mailer: git-send-email 2.27.0.278.ge193c7cf3a9-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org These aren't used and the macros that reference them aren't used either. Remove the dead code to avoid compile warnings. Cc: Owen Chen Cc: Mars Cheng Cc: Macpaul Lin Fixes: 1aca9939bf72 ("clk: mediatek: Add MT6765 clock support") Reported-by: kbuild test robot Signed-off-by: Stephen Boyd --- drivers/clk/mediatek/clk-mt6765.c | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/drivers/clk/mediatek/clk-mt6765.c b/drivers/clk/mediatek/clk-mt6765.c index 3ec53cb62ece..db8db1b3b79d 100644 --- a/drivers/clk/mediatek/clk-mt6765.c +++ b/drivers/clk/mediatek/clk-mt6765.c @@ -534,18 +534,6 @@ static const struct mtk_gate top_clks[] = { GATE_TOP2(CLK_TOP_APLL12_DIV3, "apll12_div3", "aud_1_ck", 5), }; -static const struct mtk_gate_regs ifr0_cg_regs = { - .set_ofs = 0x200, - .clr_ofs = 0x200, - .sta_ofs = 0x200, -}; - -static const struct mtk_gate_regs ifr1_cg_regs = { - .set_ofs = 0x74, - .clr_ofs = 0x74, - .sta_ofs = 0x74, -}; - static const struct mtk_gate_regs ifr2_cg_regs = { .set_ofs = 0x80, .clr_ofs = 0x84, @@ -570,24 +558,6 @@ static const struct mtk_gate_regs ifr5_cg_regs = { .sta_ofs = 0xc8, }; -#define GATE_IFR0(_id, _name, _parent, _shift) { \ - .id = _id, \ - .name = _name, \ - .parent_name = _parent, \ - .regs = &ifr0_cg_regs, \ - .shift = _shift, \ - .ops = &mtk_clk_gate_ops_no_setclr_inv, \ - } - -#define GATE_IFR1(_id, _name, _parent, _shift) { \ - .id = _id, \ - .name = _name, \ - .parent_name = _parent, \ - .regs = &ifr1_cg_regs, \ - .shift = _shift, \ - .ops = &mtk_clk_gate_ops_no_setclr, \ - } - #define GATE_IFR2(_id, _name, _parent, _shift) { \ .id = _id, \ .name = _name, \ -- Sent by a computer, using git, on the internet