diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2022-09-21 17:05:08 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-09-23 05:30:35 +0300 |
commit | 47f6aa145036b57186f1eae35d0eebb2bf3fd6b7 (patch) | |
tree | 12ac1d697f96ea8c66e5e1309050333bdec71dbd | |
parent | 764a73b43c360d1c2925baa6bd76160599c76991 (diff) | |
download | linux-47f6aa145036b57186f1eae35d0eebb2bf3fd6b7.tar.xz |
net: dsa: bcm_sf2: 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: Yang Yingliang <yangyingliang@huawei.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
-rw-r--r-- | drivers/net/dsa/bcm_sf2.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/dsa/bcm_sf2.c b/drivers/net/dsa/bcm_sf2.c index 6507663f35e5..cde253d27bd0 100644 --- a/drivers/net/dsa/bcm_sf2.c +++ b/drivers/net/dsa/bcm_sf2.c @@ -1551,8 +1551,6 @@ static int bcm_sf2_sw_remove(struct platform_device *pdev) if (priv->type == BCM7278_DEVICE_ID) reset_control_assert(priv->rcdev); - platform_set_drvdata(pdev, NULL); - return 0; } |