summaryrefslogtreecommitdiff
path: root/drivers/clk/mediatek/clk-mt7629-eth.c
diff options
context:
space:
mode:
authorRex-BC Chen <rex-bc.chen@mediatek.com>2022-05-23 12:33:37 +0300
committerStephen Boyd <sboyd@kernel.org>2022-06-16 03:24:13 +0300
commit761bc64003e38119ce4687424ef56de3976fe26c (patch)
tree76655eae73ac61591fa9f30f3c89d36e098af5f0 /drivers/clk/mediatek/clk-mt7629-eth.c
parent7d10ae3797e1aea48d7635685d3b9c3bdf2bc56e (diff)
downloadlinux-761bc64003e38119ce4687424ef56de3976fe26c.tar.xz
clk: mediatek: reset: Add new register reset function with device
Using device to register reset controller is a better implementation in current drivers. Howerver, some clock drviers of MediaTek only provide device_node. Therefore, we still remain the register reset function with device_node and add a new function with device to register reset controller. Signed-off-by: Rex-BC Chen <rex-bc.chen@mediatek.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Reviewed-by: NĂ­colas F. R. A. Prado <nfraprado@collabora.com> Tested-by: NĂ­colas F. R. A. Prado <nfraprado@collabora.com> Link: https://lore.kernel.org/r/20220523093346.28493-11-rex-bc.chen@mediatek.com Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/mediatek/clk-mt7629-eth.c')
-rw-r--r--drivers/clk/mediatek/clk-mt7629-eth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/mediatek/clk-mt7629-eth.c b/drivers/clk/mediatek/clk-mt7629-eth.c
index 11b346c9d916..282dd6559465 100644
--- a/drivers/clk/mediatek/clk-mt7629-eth.c
+++ b/drivers/clk/mediatek/clk-mt7629-eth.c
@@ -100,7 +100,7 @@ static int clk_mt7629_ethsys_init(struct platform_device *pdev)
"could not register clock provider: %s: %d\n",
pdev->name, r);
- mtk_register_reset_controller(node, &clk_rst_desc);
+ mtk_register_reset_controller_with_dev(&pdev->dev, &clk_rst_desc);
return r;
}