Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb: dwc3: qcom: Use of_clk_get_parent_count()

Use of_clk_get_parent_count() instead of open coding.

Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>

authored by

Kefeng Wang and committed by
Felipe Balbi
4d20a610 dc1b5d9a

+1 -2
+1 -2
drivers/usb/dwc3/dwc3-qcom.c
··· 595 595 goto reset_assert; 596 596 } 597 597 598 - ret = dwc3_qcom_clk_init(qcom, of_count_phandle_with_args(np, 599 - "clocks", "#clock-cells")); 598 + ret = dwc3_qcom_clk_init(qcom, of_clk_get_parent_count(np)); 600 599 if (ret) { 601 600 dev_err(dev, "failed to get clocks\n"); 602 601 goto reset_assert;