diff options
author | Kefeng Wang <wangkefeng.wang@huawei.com> | 2019-05-25 19:58:08 +0800 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2019-06-18 11:58:29 +0300 |
commit | 4d20a6107050b45da976e28dc23274eb9ff1c242 (patch) | |
tree | 9a6a924cf1fd3e35c07c2ab05b41abf334d3d50c /drivers/usb/dwc3 | |
parent | dc1b5d9aed1794b5a1c6b0da46e372cc09974cbc (diff) | |
download | linux-stable-4d20a6107050b45da976e28dc23274eb9ff1c242.tar.gz linux-stable-4d20a6107050b45da976e28dc23274eb9ff1c242.tar.bz2 linux-stable-4d20a6107050b45da976e28dc23274eb9ff1c242.zip |
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>
Diffstat (limited to 'drivers/usb/dwc3')
-rw-r--r-- | drivers/usb/dwc3/dwc3-qcom.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/dwc3/dwc3-qcom.c b/drivers/usb/dwc3/dwc3-qcom.c index c59e9d8e8609..261af9e38ddd 100644 --- a/drivers/usb/dwc3/dwc3-qcom.c +++ b/drivers/usb/dwc3/dwc3-qcom.c @@ -595,8 +595,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; |