phy: Add an mdio_device structure
[cascardo/linux.git] / drivers / net / ethernet / marvell / mvneta.c
index 15b1f6b..fabc8df 100644 (file)
@@ -3714,7 +3714,7 @@ static int mvneta_probe(struct platform_device *pdev)
 
                mvneta_fixed_link_update(pp, phy);
 
-               put_device(&phy->dev);
+               put_device(&phy->mdio.dev);
        }
 
        return 0;