phy: ti-pipe3: Don't get 'wkupclk' and 'refclk' for SATA PHY

SATA PHY doesn't need 'wkupclk; and 'refclk' so don't
try to get them for SATA PHY.

Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
This commit is contained in:
Roger Quadros 2014-03-06 16:38:42 +02:00 committed by Kishon Vijay Abraham I
parent 61f5467477
commit 9c7f044360
1 changed files with 15 additions and 9 deletions

View File

@ -294,6 +294,8 @@ static int ti_pipe3_probe(struct platform_device *pdev)
phy->dev = &pdev->dev;
if (!of_device_is_compatible(node, "ti,phy-pipe3-sata")) {
phy->wkupclk = devm_clk_get(phy->dev, "wkupclk");
if (IS_ERR(phy->wkupclk)) {
dev_err(&pdev->dev, "unable to get wkupclk\n");
@ -305,6 +307,10 @@ static int ti_pipe3_probe(struct platform_device *pdev)
dev_err(&pdev->dev, "unable to get refclk\n");
return PTR_ERR(phy->refclk);
}
} else {
phy->wkupclk = ERR_PTR(-ENODEV);
phy->refclk = ERR_PTR(-ENODEV);
}
phy->sys_clk = devm_clk_get(phy->dev, "sysclk");
if (IS_ERR(phy->sys_clk)) {