diff options
author | Madalin Bucur <madalin.bucur@nxp.com> | 2018-03-14 08:37:29 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-03-14 13:16:23 -0400 |
commit | 88075256ee817041d68c2387f29065b5cb2b342a (patch) | |
tree | a4d9424c2b09f2eae807086efd9c0b2b3cf0fa40 /drivers/net/ethernet | |
parent | 96f413f47677366e0ae03797409bfcc4151dbf9e (diff) | |
download | blackbird-obmc-linux-88075256ee817041d68c2387f29065b5cb2b342a.tar.gz blackbird-obmc-linux-88075256ee817041d68c2387f29065b5cb2b342a.zip |
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 <madalin.bucur@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/freescale/dpaa/dpaa_eth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c b/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c index 7caa8da48421..3af5e0c08233 100644 --- a/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c +++ b/drivers/net/ethernet/freescale/dpaa/dpaa_eth.c @@ -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); |