[PATCH v3 01/14] counter: rz-mtu3-cnt: do not assign struct rz_mtu3_channel::dev

From: Cosmin Tanislav

Date: Tue Nov 17 2026 - 05:27:26 EST


struct rz_mtu3_channel::dev is now unused. Remove the assignment to
prepare for removing it entirely.

Signed-off-by: Cosmin Tanislav <cosmin-gabriel.tanislav.xa@xxxxxxxxxxx>
---

V3:
* no changes

V2:
* no changes

drivers/counter/rz-mtu3-cnt.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/drivers/counter/rz-mtu3-cnt.c b/drivers/counter/rz-mtu3-cnt.c
index e7fe8bf45164..bafb8ef82afb 100644
--- a/drivers/counter/rz-mtu3-cnt.c
+++ b/drivers/counter/rz-mtu3-cnt.c
@@ -842,7 +842,6 @@ static int rz_mtu3_cnt_probe(struct platform_device *pdev)
struct rz_mtu3 *ddata = dev_get_drvdata(pdev->dev.parent);
struct device *dev = &pdev->dev;
struct counter_device *counter;
- struct rz_mtu3_channel *ch;
struct rz_mtu3_cnt *priv;
unsigned int i;
int ret;
@@ -855,12 +854,8 @@ static int rz_mtu3_cnt_probe(struct platform_device *pdev)
priv->clk = ddata->clk;
priv->mtu_32bit_max = U32_MAX;
priv->ch = &ddata->channels[RZ_MTU3_CHAN_1];
- ch = &priv->ch[0];
- for (i = 0; i < RZ_MTU3_MAX_HW_CNTR_CHANNELS; i++) {
- ch->dev = dev;
+ for (i = 0; i < RZ_MTU3_MAX_HW_CNTR_CHANNELS; i++)
priv->mtu_16bit_max[i] = U16_MAX;
- ch++;
- }

mutex_init(&priv->lock);
platform_set_drvdata(pdev, priv->clk);
--
2.56.0