Skip to content

Commit 9fe9aa0

Browse files
ikhorndavem330
authored andcommitted
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: Ivan Khoronzhuk <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 0fa9e28 commit 9fe9aa0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/ti/cpsw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3032,7 +3032,7 @@ static int cpsw_probe(struct platform_device *pdev)
30323032
goto clean_dma_ret;
30333033
}
30343034

3035-
ale_params.dev = &ndev->dev;
3035+
ale_params.dev = &pdev->dev;
30363036
ale_params.ale_ageout = ale_ageout;
30373037
ale_params.ale_entries = data->ale_entries;
30383038
ale_params.ale_ports = data->slaves;

0 commit comments

Comments
 (0)