[PATCH 2/2] clk: rockchip: softrst: Remove unused num_regs member

From: Nicolas Frattaroli

Date: Tue Sep 01 2026 - 11:59:57 EST


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@xxxxxxxxxxxxx>
---
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