Skip to content

Commit c19d966

Browse files
hal-fengbebarino
authored andcommitted
clk: starfive: Delete the redundant dev_set_drvdata() in JH7110 clock drivers
The dev_set_drvdata() is no longer needed after we used a wrapper struct to get the data in auxiliary driver. Cc: Xingyu Wu <xingyu.wu@starfivetech.com> Fixes: d1aae06 ("clk: starfive: Avoid casting iomem pointers") Signed-off-by: Hal Feng <hal.feng@starfivetech.com> Link: https://lore.kernel.org/r/20230417074115.30786-3-hal.feng@starfivetech.com Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent d1aae06 commit c19d966

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

drivers/clk/starfive/clk-starfive-jh7110-aon.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,6 @@ static int jh7110_aoncrg_probe(struct platform_device *pdev)
8383
if (IS_ERR(priv->base))
8484
return PTR_ERR(priv->base);
8585

86-
dev_set_drvdata(priv->dev, (void *)(&priv->base));
87-
8886
for (idx = 0; idx < JH7110_AONCLK_END; idx++) {
8987
u32 max = jh7110_aonclk_data[idx].max;
9088
struct clk_parent_data parents[4] = {};

drivers/clk/starfive/clk-starfive-jh7110-sys.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -402,8 +402,6 @@ static int __init jh7110_syscrg_probe(struct platform_device *pdev)
402402
if (IS_ERR(priv->base))
403403
return PTR_ERR(priv->base);
404404

405-
dev_set_drvdata(priv->dev, (void *)(&priv->base));
406-
407405
/*
408406
* These PLL clocks are not actually fixed factor clocks and can be
409407
* controlled by the syscon registers of JH7110. They will be dropped

0 commit comments

Comments
 (0)