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>
This commit is contained in:
parent
496037c015
commit
91927ff644
|
@ -686,7 +686,7 @@ static int rpm_smd_clk_probe(struct platform_device *pdev)
|
||||||
goto err;
|
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);
|
rcc);
|
||||||
if (ret)
|
if (ret)
|
||||||
goto err;
|
goto err;
|
||||||
|
@ -697,19 +697,12 @@ err:
|
||||||
return ret;
|
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 = {
|
static struct platform_driver rpm_smd_clk_driver = {
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "qcom-clk-smd-rpm",
|
.name = "qcom-clk-smd-rpm",
|
||||||
.of_match_table = rpm_smd_clk_match_table,
|
.of_match_table = rpm_smd_clk_match_table,
|
||||||
},
|
},
|
||||||
.probe = rpm_smd_clk_probe,
|
.probe = rpm_smd_clk_probe,
|
||||||
.remove = rpm_smd_clk_remove,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init rpm_smd_clk_init(void)
|
static int __init rpm_smd_clk_init(void)
|
||||||
|
|
Loading…
Reference in New Issue