drivers: net: cpsw-phy-sel: initialize priv->dev
authorMugunthan V N <mugunthanvnm@ti.com>
Fri, 9 May 2014 13:37:33 +0000 (19:07 +0530)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 May 2014 04:10:59 +0000 (00:10 -0400)
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>
drivers/net/ethernet/ti/cpsw-phy-sel.c

index 148da9ae83666ce7cd2284c1cc75f18e9957f15f..86b5dce04642312a1aad8abbec3d16baa122e563 100644 (file)
@@ -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");