Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: d1aae0663023 ("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>

authored by

Hal Feng and committed by
Stephen Boyd
c19d966e d1aae066

-4
-2
drivers/clk/starfive/clk-starfive-jh7110-aon.c
··· 83 83 if (IS_ERR(priv->base)) 84 84 return PTR_ERR(priv->base); 85 85 86 - dev_set_drvdata(priv->dev, (void *)(&priv->base)); 87 - 88 86 for (idx = 0; idx < JH7110_AONCLK_END; idx++) { 89 87 u32 max = jh7110_aonclk_data[idx].max; 90 88 struct clk_parent_data parents[4] = {};
-2
drivers/clk/starfive/clk-starfive-jh7110-sys.c
··· 402 402 if (IS_ERR(priv->base)) 403 403 return PTR_ERR(priv->base); 404 404 405 - dev_set_drvdata(priv->dev, (void *)(&priv->base)); 406 - 407 405 /* 408 406 * These PLL clocks are not actually fixed factor clocks and can be 409 407 * controlled by the syscon registers of JH7110. They will be dropped