提交 9fe9aa0b 编写于 作者: I Ivan Khoronzhuk 提交者: David S. Miller

net: ethernet: ti: cpsw: correct ale dev to cpsw

The ale is a property of cpsw, so change dev to cpsw->dev,
aka pdev->dev, to be consistent.
Signed-off-by: NIvan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 0fa9e289
...@@ -3032,7 +3032,7 @@ static int cpsw_probe(struct platform_device *pdev) ...@@ -3032,7 +3032,7 @@ static int cpsw_probe(struct platform_device *pdev)
goto clean_dma_ret; goto clean_dma_ret;
} }
ale_params.dev = &ndev->dev; ale_params.dev = &pdev->dev;
ale_params.ale_ageout = ale_ageout; ale_params.ale_ageout = ale_ageout;
ale_params.ale_entries = data->ale_entries; ale_params.ale_entries = data->ale_entries;
ale_params.ale_ports = data->slaves; ale_params.ale_ports = data->slaves;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册