UPSTREAM: phy: core: fix wrong err handle for phy_power_on
[firefly-linux-kernel-4.4.55.git] / drivers / phy / phy-mvebu-sata.c
index d395558cb12e327fd1bc42d6f9f8c3a4d59fd5d9..768ce92e81ce7634f767612a99f37025185422db 100644 (file)
@@ -75,7 +75,7 @@ static int phy_mvebu_sata_power_off(struct phy *phy)
        return 0;
 }
 
-static struct phy_ops phy_mvebu_sata_ops = {
+static const struct phy_ops phy_mvebu_sata_ops = {
        .power_on       = phy_mvebu_sata_power_on,
        .power_off      = phy_mvebu_sata_power_off,
        .owner          = THIS_MODULE,
@@ -101,7 +101,7 @@ static int phy_mvebu_sata_probe(struct platform_device *pdev)
        if (IS_ERR(priv->clk))
                return PTR_ERR(priv->clk);
 
-       phy = devm_phy_create(&pdev->dev, NULL, &phy_mvebu_sata_ops, NULL);
+       phy = devm_phy_create(&pdev->dev, NULL, &phy_mvebu_sata_ops);
        if (IS_ERR(phy))
                return PTR_ERR(phy);