diff options
author | Mugunthan V N <mugunthanvnm@ti.com> | 2014-05-09 17:37:33 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-05-13 08:10:59 +0400 |
commit | 84ef36bde9714565215e0cb08ccda5d64bf74996 (patch) | |
tree | 5e2ca29f121b32bd95c36ecfc12971df1f8dced5 /drivers/net/ethernet/ti | |
parent | b2ce49e7375ff5b9b133c474875dfbd97ef00ef7 (diff) | |
download | linux-84ef36bde9714565215e0cb08ccda5d64bf74996.tar.xz |
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>
Diffstat (limited to 'drivers/net/ethernet/ti')
-rw-r--r-- | drivers/net/ethernet/ti/cpsw-phy-sel.c | 1 |
1 files changed, 1 insertions, 0 deletions
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"); |