diff options
author | Yang Yingliang | 2022-09-21 22:05:08 +0800 |
---|---|---|
committer | Jakub Kicinski | 2022-09-22 19:30:35 -0700 |
commit | 47f6aa145036b57186f1eae35d0eebb2bf3fd6b7 (patch) | |
tree | 12ac1d697f96ea8c66e5e1309050333bdec71dbd /drivers/net/dsa | |
parent | 764a73b43c360d1c2925baa6bd76160599c76991 (diff) |
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>
Diffstat (limited to 'drivers/net/dsa')
-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; } |