diff options
author | Stephen Boyd <sboyd@codeaurora.org> | 2018-02-02 01:33:26 +0100 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2018-03-16 23:52:39 +0100 |
commit | 91927ff6446c281a3aa5cf8875cf7f0853a2bb55 (patch) | |
tree | 73f544f2fc80f81f7da3047ed31a786d7332db7d /drivers/clk/qcom | |
parent | clk: qcom: gcc-msm8996: Mark aggre0 noc clks as critical (diff) | |
download | linux-91927ff6446c281a3aa5cf8875cf7f0853a2bb55.tar.xz linux-91927ff6446c281a3aa5cf8875cf7f0853a2bb55.zip |
clk: qcom: smd-rpm: Migrate to devm_of_clk_add_hw_provider()
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/qcom')
-rw-r--r-- | drivers/clk/qcom/clk-smd-rpm.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/drivers/clk/qcom/clk-smd-rpm.c b/drivers/clk/qcom/clk-smd-rpm.c index c26d9007bfc4..850c02a52248 100644 --- a/drivers/clk/qcom/clk-smd-rpm.c +++ b/drivers/clk/qcom/clk-smd-rpm.c @@ -686,7 +686,7 @@ static int rpm_smd_clk_probe(struct platform_device *pdev) goto err; } - ret = of_clk_add_hw_provider(pdev->dev.of_node, qcom_smdrpm_clk_hw_get, + ret = devm_of_clk_add_hw_provider(&pdev->dev, qcom_smdrpm_clk_hw_get, rcc); if (ret) goto err; @@ -697,19 +697,12 @@ err: return ret; } -static int rpm_smd_clk_remove(struct platform_device *pdev) -{ - of_clk_del_provider(pdev->dev.of_node); - return 0; -} - static struct platform_driver rpm_smd_clk_driver = { .driver = { .name = "qcom-clk-smd-rpm", .of_match_table = rpm_smd_clk_match_table, }, .probe = rpm_smd_clk_probe, - .remove = rpm_smd_clk_remove, }; static int __init rpm_smd_clk_init(void) |