mirror of
https://github.com/torvalds/linux.git
synced 2026-05-15 06:03:19 -04:00
dpaa_eth: fix error in dpaa_remove()
[ Upstream commit 88075256ee ]
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
29cd9c2d1f
commit
5bbb99d2fd
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user