Commit 5adb55c9 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by David S. Miller

fsl/fman: Remove a useless call to 'dev_set_drvdata()'

Commit c6e26ea8 ("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: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 03ac738d
...@@ -713,7 +713,6 @@ static int mac_probe(struct platform_device *_of_dev) ...@@ -713,7 +713,6 @@ static int mac_probe(struct platform_device *_of_dev)
__devm_release_region(dev, fman_get_mem_region(priv->fman), __devm_release_region(dev, fman_get_mem_region(priv->fman),
res.start, res.end + 1 - res.start); res.start, res.end + 1 - res.start);
devm_kfree(dev, mac_dev); devm_kfree(dev, mac_dev);
dev_set_drvdata(dev, NULL);
return -ENODEV; return -ENODEV;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment