提交 5adb55c9 编写于 作者: C Christophe JAILLET 提交者: 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: NChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 03ac738d
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册