xhci: Add completion code to the debug ouput of unhandled transfer events
[deliverable/linux.git] / drivers / phy / phy-mvebu-sata.c
index cc3c0e166dafba9e90241ff71c604d24ac351392..03b94f92e6f17b319c68a58f03ac8cf91ef0be75 100644 (file)
@@ -89,6 +89,8 @@ static int phy_mvebu_sata_probe(struct platform_device *pdev)
        struct phy *phy;
 
        priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL);
+       if (!priv)
+               return -ENOMEM;
 
        res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
        priv->base = devm_ioremap_resource(&pdev->dev, res);
@@ -99,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);
 
@@ -126,7 +128,6 @@ static struct platform_driver phy_mvebu_sata_driver = {
        .probe  = phy_mvebu_sata_probe,
        .driver = {
                .name   = "phy-mvebu-sata",
-               .owner  = THIS_MODULE,
                .of_match_table = phy_mvebu_sata_of_match,
        }
 };
This page took 0.028444 seconds and 5 git commands to generate.