From: Axel Lin Date: Wed, 11 Mar 2015 01:41:34 +0000 (+0800) Subject: phy: omap-usb2: Fix missing clk_prepare call when using old dt name X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b1ff3231b2d4197ef5024f9c57ffc6cfa562590c;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git phy: omap-usb2: Fix missing clk_prepare call when using old dt name 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 Signed-off-by: Kishon Vijay Abraham I --- diff --git a/drivers/phy/phy-omap-usb2.c b/drivers/phy/phy-omap-usb2.c index c4917b2cf14c..4757e765696a 100644 --- 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;