Commit 4d20a610 authored by Kefeng Wang's avatar Kefeng Wang Committed by Felipe Balbi

usb: dwc3: qcom: Use of_clk_get_parent_count()

Use of_clk_get_parent_count() instead of open coding.
Signed-off-by: default avatarKefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent dc1b5d9a
...@@ -595,8 +595,7 @@ static int dwc3_qcom_probe(struct platform_device *pdev) ...@@ -595,8 +595,7 @@ static int dwc3_qcom_probe(struct platform_device *pdev)
goto reset_assert; goto reset_assert;
} }
ret = dwc3_qcom_clk_init(qcom, of_count_phandle_with_args(np, ret = dwc3_qcom_clk_init(qcom, of_clk_get_parent_count(np));
"clocks", "#clock-cells"));
if (ret) { if (ret) {
dev_err(dev, "failed to get clocks\n"); dev_err(dev, "failed to get clocks\n");
goto reset_assert; goto reset_assert;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment