Browse Source

drivers: net: cpsw-phy-sel: initialize priv->dev

priv->dev is uninitialized, initializing with pdev->dev

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Mugunthan V N 11 years ago
parent
commit
84ef36bde9
1 changed files with 1 additions and 0 deletions
  1. 1 0
      drivers/net/ethernet/ti/cpsw-phy-sel.c

+ 1 - 0
drivers/net/ethernet/ti/cpsw-phy-sel.c

@@ -132,6 +132,7 @@ static int cpsw_phy_sel_probe(struct platform_device *pdev)
 		return -ENOMEM;
 	}
 
+	priv->dev = &pdev->dev;
 	priv->cpsw_phy_sel = of_id->data;
 
 	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "gmii-sel");