Skip to content

Commit 8807525

Browse files
madalinbucurdavem330
authored andcommitted
dpaa_eth: fix error in dpaa_remove()
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 96f413f commit 8807525

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/freescale/dpaa/dpaa_eth.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2860,7 +2860,7 @@ static int dpaa_remove(struct platform_device *pdev)
28602860
struct device *dev;
28612861
int err;
28622862

2863-
dev = &pdev->dev;
2863+
dev = pdev->dev.parent;
28642864
net_dev = dev_get_drvdata(dev);
28652865

28662866
priv = netdev_priv(net_dev);

0 commit comments

Comments
 (0)