Skip to content

Commit

Permalink
phy: omap-usb2: Fix missing clk_prepare call when using old dt name
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
AxelLin authored and kishon committed Mar 13, 2015
1 parent dd64ad3 commit b1ff323
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/phy/phy-omap-usb2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b1ff323

Please sign in to comment.