Skip to content

Commit

Permalink
[WIP] Use of_clk_hw_register
Browse files Browse the repository at this point in the history
  • Loading branch information
neuschaefer committed Sep 23, 2023
1 parent a743b68 commit 513d079
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/clk/nuvoton/clk-wpcm450.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ static const struct clk_ops wpcm450_clk_pll_ops = {
};

static struct clk_hw *
wpcm450_clk_register_pll(void __iomem *pllcon, const char *name,
wpcm450_clk_register_pll(struct device_node *np, void __iomem *pllcon, const char *name,
const struct clk_parent_data *parent, unsigned long flags)
{
struct wpcm450_clk_pll *pll;
Expand All @@ -104,7 +104,7 @@ wpcm450_clk_register_pll(void __iomem *pllcon, const char *name,
pll->pllcon = pllcon;
pll->hw.init = &init;

ret = clk_hw_register(NULL, &pll->hw);
ret = of_clk_hw_register(np, &pll->hw);
if (ret) {
kfree(pll);
return ERR_PTR(ret);
Expand Down Expand Up @@ -280,7 +280,7 @@ static void __init wpcm450_clk_init(struct device_node *np)
for (i = 0; i < ARRAY_SIZE(pll_data); i++) {
const struct wpcm450_pll_data *data = &pll_data[i];

hw = wpcm450_clk_register_pll(clk_base + data->reg, data->name,
hw = wpcm450_clk_register_pll(np, clk_base + data->reg, data->name,
&data->parent, data->flags);
if (IS_ERR(hw)) {
pr_info("Failed to register PLL: %pe\n", hw);
Expand Down

0 comments on commit 513d079

Please sign in to comment.