summaryrefslogtreecommitdiff
path: root/drivers/usb/dwc3/dwc3-keystone.c
diff options
context:
space:
mode:
authorYang Yingliang <yangyingliang@huawei.com>2023-08-10 16:47:10 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-08-22 15:45:19 +0300
commit8d1de0ebce71feb0961458dee7695f1f25767a92 (patch)
treef8c93531670d6b83cf4d7cf7448c99e41d3915b2 /drivers/usb/dwc3/dwc3-keystone.c
parentf72ae60881ff685004d7de7152517607fcd9968f (diff)
downloadlinux-8d1de0ebce71feb0961458dee7695f1f25767a92.tar.xz
usb: dwc3: remove unnecessary platform_set_drvdata()
Remove unnecessary platform_set_drvdata(..., NULL) in ->remove(), the driver_data will be cleared in device_unbind_cleanup() after calling ->remove() in driver call code. Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com> Link: https://lore.kernel.org/r/20230810134710.114356-1-yangyingliang@huawei.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/dwc3/dwc3-keystone.c')
-rw-r--r--drivers/usb/dwc3/dwc3-keystone.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/usb/dwc3/dwc3-keystone.c b/drivers/usb/dwc3/dwc3-keystone.c
index 4155e8d5a559..8899348b6276 100644
--- a/drivers/usb/dwc3/dwc3-keystone.c
+++ b/drivers/usb/dwc3/dwc3-keystone.c
@@ -197,8 +197,6 @@ static void kdwc3_remove(struct platform_device *pdev)
phy_power_off(kdwc->usb3_phy);
phy_exit(kdwc->usb3_phy);
phy_pm_runtime_put_sync(kdwc->usb3_phy);
-
- platform_set_drvdata(pdev, NULL);
}
static const struct of_device_id kdwc3_of_match[] = {