Patchwork [v2,1/3] drivers: net: cpsw-phy-sel: initialize priv->dev

login
register
mail settings
Submitter Mugunthan V N
Date May 9, 2014, 1:37 p.m.
Message ID <1399642655-6412-2-git-send-email-mugunthanvnm@ti.com>
Download mbox | patch
Permalink /patch/347416/
State Accepted
Delegated to: David Miller
Headers show

Comments

Mugunthan V N - May 9, 2014, 1:37 p.m.
priv->dev is uninitialized, initializing with pdev->dev

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
---
 drivers/net/ethernet/ti/cpsw-phy-sel.c | 1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/drivers/net/ethernet/ti/cpsw-phy-sel.c b/drivers/net/ethernet/ti/cpsw-phy-sel.c
index 148da9a..86b5dce 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");