From: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
To: Stephen Boyd <sboyd@kernel.org>,
Brian Masney <bmasney+clk@redhat.com>,
Jerome Brunet <jbrunet+clk@baylibre.com>,
Heiko Stuebner <heiko@sntech.de>
Cc: linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org,
linux-rockchip@lists.infradead.org,
linux-kernel@vger.kernel.org, kernel@collabora.com,
Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
Subject: [PATCH 2/2] clk: rockchip: softrst: Remove unused num_regs member
Date: Tue, 01 Sep 2026 17:13:35 +0200 [thread overview]
Message-ID: <20260901-rockchip-reset-refactor-v1-2-936576523b21@collabora.com> (raw)
In-Reply-To: <20260901-rockchip-reset-refactor-v1-0-936576523b21@collabora.com>
Not used by anything, but set. Get rid of it to save an entire 4 bytes
of memory, which is not nothing in this economy.
Signed-off-by: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
---
drivers/clk/rockchip/softrst.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/clk/rockchip/softrst.c b/drivers/clk/rockchip/softrst.c
index c59589b02963..b463f59cbf36 100644
--- a/drivers/clk/rockchip/softrst.c
+++ b/drivers/clk/rockchip/softrst.c
@@ -13,7 +13,6 @@ struct rockchip_softrst {
struct reset_controller_dev rcdev;
const int *lut;
void __iomem *reg_base;
- int num_regs;
};
#define NUM_PER_REG 16
@@ -75,7 +74,6 @@ void rockchip_register_softrst_lut(struct device_node *np,
softrst->reg_base = base;
softrst->lut = lookup_table;
- softrst->num_regs = num_regs;
softrst->rcdev.owner = THIS_MODULE;
if (lookup_table)
--
2.55.0
prev parent reply other threads:[~2026-09-01 15:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-01 15:13 [PATCH 0/2] Rockchip softrst cleanup Nicolas Frattaroli
2026-09-01 15:13 ` [PATCH 1/2] clk: rockchip: Remove dead code from softrst driver Nicolas Frattaroli
2026-09-01 15:13 ` Nicolas Frattaroli [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260901-rockchip-reset-refactor-v1-2-936576523b21@collabora.com \
--to=nicolas.frattaroli@collabora.com \
--cc=bmasney+clk@redhat.com \
--cc=heiko@sntech.de \
--cc=jbrunet+clk@baylibre.com \
--cc=kernel@collabora.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rockchip@lists.infradead.org \
--cc=sboyd@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox