提交 8668cfc6 编写于 作者: Y Yang Yingliang 提交者: Jakub Kicinski

net: dsa: hellcreek: remove unnecessary platform_set_drvdata()

Remove unnecessary platform_set_drvdata() in ->remove(), the driver_data
will be set to NULL in device_unbind_cleanup() after calling ->remove().
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Acked-by: NKurt Kanzenbach <kurt@linutronix.de>
Signed-off-by: NJakub Kicinski <kuba@kernel.org>
上级 c1816b20
......@@ -1996,7 +1996,6 @@ static int hellcreek_remove(struct platform_device *pdev)
hellcreek_hwtstamp_free(hellcreek);
hellcreek_ptp_free(hellcreek);
dsa_unregister_switch(hellcreek->ds);
platform_set_drvdata(pdev, NULL);
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册