Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5bbb99d2 authored by Madalin Bucur's avatar Madalin Bucur Committed by Greg Kroah-Hartman
Browse files

dpaa_eth: fix error in dpaa_remove()




[ Upstream commit 88075256 ]

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: default avatarMadalin Bucur <madalin.bucur@nxp.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 29cd9c2d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);