[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20190525115808.108142-1-wangkefeng.wang@huawei.com>
Date: Sat, 25 May 2019 19:58:08 +0800
From: Kefeng Wang <wangkefeng.wang@...wei.com>
To: Felipe Balbi <felipe.balbi@...ux.intel.com>,
Andy Gross <agross@...nel.org>,
David Brown <david.brown@...aro.org>
CC: <linux-usb@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
Kefeng Wang <wangkefeng.wang@...wei.com>
Subject: [PATCH] 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@...wei.com>
---
drivers/usb/dwc3/dwc3-qcom.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
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;
--
2.20.1
Powered by blists - more mailing lists