Commit 84ef36bd authored by Mugunthan V N's avatar Mugunthan V N Committed by David S. Miller

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

priv->dev is uninitialized, initializing with pdev->dev
Signed-off-by: default avatarMugunthan V N <mugunthanvnm@ti.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b2ce49e7
...@@ -132,6 +132,7 @@ static int cpsw_phy_sel_probe(struct platform_device *pdev) ...@@ -132,6 +132,7 @@ static int cpsw_phy_sel_probe(struct platform_device *pdev)
return -ENOMEM; return -ENOMEM;
} }
priv->dev = &pdev->dev;
priv->cpsw_phy_sel = of_id->data; priv->cpsw_phy_sel = of_id->data;
res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "gmii-sel"); res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "gmii-sel");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment