phy: omap-usb2: Fix missing clk_prepare call when using old dt name
Subsystems (2)
PATCH 1/1 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 <[email protected]>
--- drivers/phy/phy-omap-usb2.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
drivers/phy/phy-omap-usb2.c +3 -2
@@ -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 ;
Signature · 1 line
1.9.1
+stable, v3.16+
Quoted 4 lines · Axel Lin
Current code does not call
clk_prepare(phy->optclk)when using the oldusb_otg_ss_refclk960mname. Fix it.Signed-off-by Axel Lin <[email protected]>
Acked-by Roger Quadros <[email protected]>
cheers,
-roger
Quoted 23 lines
--- drivers/phy/phy-omap-usb2.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)drivers/phy/phy-omap-usb2.c +3
-2@@ -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 ;