提交 84ef36bd 编写于 作者: M Mugunthan V N 提交者: David S. Miller

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

priv->dev is uninitialized, initializing with pdev->dev
Signed-off-by: NMugunthan V N <mugunthanvnm@ti.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册