projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd64ad3
)
phy: omap-usb2: Fix missing clk_prepare call when using old dt name
author
Axel Lin
<axel.lin@ingics.com>
Wed, 11 Mar 2015 01:41:34 +0000
(09:41 +0800)
committer
Kishon Vijay Abraham I
<kishon@ti.com>
Fri, 13 Mar 2015 11:44:39 +0000
(17:14 +0530)
Current code does not call clk_prepare(phy->optclk) when using the old
usb_otg_ss_refclk960m name. Fix it.
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/phy-omap-usb2.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/phy/phy-omap-usb2.c
b/drivers/phy/phy-omap-usb2.c
index c4917b2cf14ca688bf51b3fae4185ed20a30a1df..4757e765696a232d1926ece274ef35111188cdc1 100644
(file)
--- a/
drivers/phy/phy-omap-usb2.c
+++ b/
drivers/phy/phy-omap-usb2.c
@@
-296,10
+296,11
@@
static int omap_usb2_probe(struct platform_device *pdev)
dev_warn(&pdev->dev,
"found usb_otg_ss_refclk960m, please fix DTS\n");
}
- } else {
- clk_prepare(phy->optclk);
}
+ if (!IS_ERR(phy->optclk))
+ clk_prepare(phy->optclk);
+
usb_add_phy_dev(&phy->phy);
return 0;