Skip to content

Commit

Permalink
dpaa_eth: fix error in dpaa_remove()
Browse files Browse the repository at this point in the history
The recent changes that make the driver probing compatible with DSA
were not propagated in the dpa_remove() function, breaking the
module unload function. Using the proper device to address the issue.

Signed-off-by: Madalin Bucur <madalin.bucur@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
madalinbucur authored and davem330 committed Mar 14, 2018
1 parent 96f413f commit 8807525
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/freescale/dpaa/dpaa_eth.c
Original file line number Diff line number Diff line change
Expand Up @@ -2860,7 +2860,7 @@ static int dpaa_remove(struct platform_device *pdev)
struct device *dev;
int err;

dev = &pdev->dev;
dev = pdev->dev.parent;
net_dev = dev_get_drvdata(dev);

priv = netdev_priv(net_dev);
Expand Down

0 comments on commit 8807525

Please sign in to comment.