net: dsa: rzn1-a5psw: remove unnecessary platform_set_drvdata()
authorYang Yingliang <yangyingliang@huawei.com>
Wed, 21 Sep 2022 14:05:21 +0000 (22:05 +0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 23 Sep 2022 02:30:39 +0000 (19:30 -0700)
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: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/dsa/rzn1_a5psw.c

index 0744e81..ed413d5 100644 (file)
@@ -1025,8 +1025,6 @@ static int a5psw_remove(struct platform_device *pdev)
        clk_disable_unprepare(a5psw->hclk);
        clk_disable_unprepare(a5psw->clk);
 
-       platform_set_drvdata(pdev, NULL);
-
        return 0;
 }