net: ethernet: ti: cpsw: correct ale dev to cpsw
authorIvan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Wed, 15 Feb 2017 17:45:02 +0000 (19:45 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Feb 2017 16:12:32 +0000 (11:12 -0500)
The ale is a property of cpsw, so change dev to cpsw->dev,
aka pdev->dev, to be consistent.

Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c

index 10f6f7496f50f5bfce46656cd6b3abbc3fbc0d98..9f3d9c67e3fe0f50b2d1119e74b7eac4b93e8bae 100644 (file)
@@ -3032,7 +3032,7 @@ static int cpsw_probe(struct platform_device *pdev)
                goto clean_dma_ret;
        }
 
-       ale_params.dev                  = &ndev->dev;
+       ale_params.dev                  = &pdev->dev;
        ale_params.ale_ageout           = ale_ageout;
        ale_params.ale_entries          = data->ale_entries;
        ale_params.ale_ports            = data->slaves;