Merge "gfrm200: fix live button" into newkernel_dev
diff --git a/drivers/net/ethernet/broadcom/genet/bcmmii.c b/drivers/net/ethernet/broadcom/genet/bcmmii.c
index 21f2170..321d401 100644
--- a/drivers/net/ethernet/broadcom/genet/bcmmii.c
+++ b/drivers/net/ethernet/broadcom/genet/bcmmii.c
@@ -454,11 +454,8 @@
 static int bcmgenet_fixed_phy_link_update(struct net_device *dev,
 					  struct fixed_phy_status *status)
 {
-        struct bcmgenet_priv *priv = netdev_priv(dev);
-        struct phy_device *phydev = priv->phydev;
-
-	if (phydev)
-		status->link = !!phydev->link;
+	if (dev && dev->phydev && status)
+		status->link = !!dev->phydev->link;
 
 	return 0;
 }