diff mbox series

usb: dwc3: qcom: Use of_clk_get_parent_count()

Message ID 20190525115808.108142-1-wangkefeng.wang@huawei.com (mailing list archive)
State Mainlined
Commit 4d20a6107050b45da976e28dc23274eb9ff1c242
Headers show
Series usb: dwc3: qcom: Use of_clk_get_parent_count() | expand

Commit Message

Kefeng Wang May 25, 2019, 11:58 a.m. UTC
Use of_clk_get_parent_count() instead of open coding.

Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
---
 drivers/usb/dwc3/dwc3-qcom.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/drivers/usb/dwc3/dwc3-qcom.c b/drivers/usb/dwc3/dwc3-qcom.c
index 184df4daa590..821f5179d7b6 100644
--- a/drivers/usb/dwc3/dwc3-qcom.c
+++ b/drivers/usb/dwc3/dwc3-qcom.c
@@ -446,8 +446,7 @@  static int dwc3_qcom_probe(struct platform_device *pdev)
 		goto reset_assert;
 	}
 
-	ret = dwc3_qcom_clk_init(qcom, of_count_phandle_with_args(np,
-						"clocks", "#clock-cells"));
+	ret = dwc3_qcom_clk_init(qcom, of_clk_get_parent_count(np));
 	if (ret) {
 		dev_err(dev, "failed to get clocks\n");
 		goto reset_assert;