projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc1b5d9
)
usb: dwc3: qcom: Use of_clk_get_parent_count()
author
Kefeng Wang
<wangkefeng.wang@huawei.com>
Sat, 25 May 2019 11:58:08 +0000
(19:58 +0800)
committer
Felipe Balbi
<felipe.balbi@linux.intel.com>
Tue, 18 Jun 2019 08:58:29 +0000
(11:58 +0300)
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>
drivers/usb/dwc3/dwc3-qcom.c
patch
|
blob
|
history
diff --git
a/drivers/usb/dwc3/dwc3-qcom.c
b/drivers/usb/dwc3/dwc3-qcom.c
index
c59e9d8
..
261af9e
100644
(file)
--- 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;