Skip to content

Commit

Permalink
clk: starfive: Delete the redundant dev_set_drvdata() in JH7110 clock…
Browse files Browse the repository at this point in the history
… 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>
  • Loading branch information
Hal Feng authored and Stephen Boyd committed Apr 18, 2023
1 parent d1aae06 commit c19d966
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions drivers/clk/starfive/clk-starfive-jh7110-aon.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,6 @@ static int jh7110_aoncrg_probe(struct platform_device *pdev)
if (IS_ERR(priv->base))
return PTR_ERR(priv->base);

dev_set_drvdata(priv->dev, (void *)(&priv->base));

for (idx = 0; idx < JH7110_AONCLK_END; idx++) {
u32 max = jh7110_aonclk_data[idx].max;
struct clk_parent_data parents[4] = {};
Expand Down
2 changes: 0 additions & 2 deletions drivers/clk/starfive/clk-starfive-jh7110-sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -402,8 +402,6 @@ static int __init jh7110_syscrg_probe(struct platform_device *pdev)
if (IS_ERR(priv->base))
return PTR_ERR(priv->base);

dev_set_drvdata(priv->dev, (void *)(&priv->base));

/*
* These PLL clocks are not actually fixed factor clocks and can be
* controlled by the syscon registers of JH7110. They will be dropped
Expand Down

0 comments on commit c19d966

Please sign in to comment.