From: Mugunthan V N Date: Fri, 9 May 2014 13:37:33 +0000 (+0530) Subject: drivers: net: cpsw-phy-sel: initialize priv->dev X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=84ef36bde9714565215e0cb08ccda5d64bf74996;p=openwrt%2Fstaging%2Fblogic.git drivers: net: cpsw-phy-sel: initialize priv->dev priv->dev is uninitialized, initializing with pdev->dev Signed-off-by: Mugunthan V N Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/ti/cpsw-phy-sel.c b/drivers/net/ethernet/ti/cpsw-phy-sel.c index 148da9ae8366..86b5dce04642 100644 --- a/drivers/net/ethernet/ti/cpsw-phy-sel.c +++ b/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");