usb: phy: samsung: Use clk_get to get reference clock
authorTomasz Figa <t.figa@samsung.com>
Thu, 16 May 2013 09:57:07 +0000 (11:57 +0200)
committerFelipe Balbi <balbi@ti.com>
Tue, 28 May 2013 17:06:30 +0000 (20:06 +0300)
There is no need to use devm_clk_get to get a clock that is being put
at the end of the function.

This patch changes the code getting reference clock to use clk_get
instead of useless in this case devm_clk_get.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/phy/phy-samsung-usb.c

index 7b118ee5f5e4aee01b563e39d0b06def9c9463b0..62cdb7e13d977d2c8f9a454e8acb941c9c8f8fb7 100644 (file)
@@ -175,9 +175,9 @@ int samsung_usbphy_get_refclk_freq(struct samsung_usbphy *sphy)
         * external crystal clock XXTI
         */
        if (sphy->drv_data->cpu_type == TYPE_EXYNOS5250)
-               ref_clk = devm_clk_get(sphy->dev, "ext_xtal");
+               ref_clk = clk_get(sphy->dev, "ext_xtal");
        else
-               ref_clk = devm_clk_get(sphy->dev, "xusbxti");
+               ref_clk = clk_get(sphy->dev, "xusbxti");
        if (IS_ERR(ref_clk)) {
                dev_err(sphy->dev, "Failed to get reference clock\n");
                return PTR_ERR(ref_clk);
This page took 0.040661 seconds and 5 git commands to generate.