diff options
author | Rex-BC Chen <rex-bc.chen@mediatek.com> | 2022-05-23 17:33:37 +0800 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2022-06-15 17:24:13 -0700 |
commit | 761bc64003e38119ce4687424ef56de3976fe26c (patch) | |
tree | 76655eae73ac61591fa9f30f3c89d36e098af5f0 /drivers/clk/mediatek/clk-mt2701-g3d.c | |
parent | 7d10ae3797e1aea48d7635685d3b9c3bdf2bc56e (diff) | |
download | linux-761bc64003e38119ce4687424ef56de3976fe26c.tar.bz2 |
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-mt2701-g3d.c')
-rw-r--r-- | drivers/clk/mediatek/clk-mt2701-g3d.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/mediatek/clk-mt2701-g3d.c b/drivers/clk/mediatek/clk-mt2701-g3d.c index 1431fa76a0f8..1458109d99d9 100644 --- a/drivers/clk/mediatek/clk-mt2701-g3d.c +++ b/drivers/clk/mediatek/clk-mt2701-g3d.c @@ -60,7 +60,7 @@ static int clk_mt2701_g3dsys_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; } |