Thread (4 messages) 4 messages, 2 authors, 2014-02-27

Re: [PATCH] phy-rcar-gen2-usb: add device tree support

From: Sergei Shtylyov <hidden>
Date: 2014-02-27 16:34:42
Also in: linux-sh

On 27-02-2014 20:06, Ben Dooks wrote:
quoted
Add support of the device tree probing for the Renesas R-Car generation 2 SoCs
documenting the device tree binding as necessary.
You've popped in some fixes for the driver probe in here as well.
    No, I didn't -- it's all the result of not using devm_clk_get().

[...]
quoted
@@ -177,13 +210,19 @@ static int rcar_gen2_usb_phy_probe(struc
[...]
quoted
-    clk = devm_clk_get(dev, "usbhs");
+    if (np)
+        clk = of_clk_get_by_name(np, "usbhs");
+    else
+        clk = clk_get(dev, "usbhs");
Can be removed, just add a clock-name of usbhs in the device node.
    Ah, I haven't figured out I should check clk_get() first... Yes, I'm 
adding the "clock-names" prop.

WBR, Sergei
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help