diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2017-11-06 22:53:29 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-11-08 13:53:33 +0900 |
commit | 5adb55c92918225005873aaac5e6af36789bf0ad (patch) | |
tree | 80f03ce4a81e6d0e2d08e0b28e75aacb90f428dd /drivers/net/ethernet/freescale | |
parent | 03ac738d5cf2f97ffa1209f6fd5d4bc211a933de (diff) | |
download | linux-5adb55c92918225005873aaac5e6af36789bf0ad.tar.bz2 |
fsl/fman: Remove a useless call to 'dev_set_drvdata()'
Commit c6e26ea8c893 ("dpaa_eth: change device used") has removed usage of
'dev_set_drvdata()' in the 'mac_probe() function.
This call should also be axed.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/freescale')
-rw-r--r-- | drivers/net/ethernet/freescale/fman/mac.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/freescale/fman/mac.c b/drivers/net/ethernet/freescale/fman/mac.c index 1d6da1ea7bfb..c27667a005f7 100644 --- a/drivers/net/ethernet/freescale/fman/mac.c +++ b/drivers/net/ethernet/freescale/fman/mac.c @@ -713,7 +713,6 @@ static int mac_probe(struct platform_device *_of_dev) __devm_release_region(dev, fman_get_mem_region(priv->fman), res.start, res.end + 1 - res.start); devm_kfree(dev, mac_dev); - dev_set_drvdata(dev, NULL); return -ENODEV; } |