X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=drivers%2Fata%2Fsata_mv.c;h=52b8181ddafd98cbfb550b3f082062280feec6d2;hb=91c6c8dcc7c30ed2d5861c670621a23f3b37e293;hp=20a7517bd3393d1a2adfcb6e4cb55afcd833e5f9;hpb=d30492adea3a82e7120bcf60893aaaab711f90a6;p=~andy%2Flinux diff --git a/drivers/ata/sata_mv.c b/drivers/ata/sata_mv.c index 20a7517bd33..52b8181ddaf 100644 --- a/drivers/ata/sata_mv.c +++ b/drivers/ata/sata_mv.c @@ -4126,12 +4126,14 @@ static int mv_platform_probe(struct platform_device *pdev) clk_prepare_enable(hpriv->port_clks[port]); sprintf(port_number, "port%d", port); - hpriv->port_phys[port] = devm_phy_get(&pdev->dev, port_number); + hpriv->port_phys[port] = devm_phy_optional_get(&pdev->dev, + port_number); if (IS_ERR(hpriv->port_phys[port])) { rc = PTR_ERR(hpriv->port_phys[port]); hpriv->port_phys[port] = NULL; - if ((rc != -EPROBE_DEFER) && (rc != -ENODEV)) - dev_warn(&pdev->dev, "error getting phy"); + if (rc != -EPROBE_DEFER) + dev_warn(&pdev->dev, "error getting phy %d", + rc); goto err; } else phy_power_on(hpriv->port_phys[port]);