summaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc3/dwc3-imx8mp.c
diff options
context:
space:
mode:
authorYang Yingliang <yangyingliang@huawei.com>2023-08-10 15:47:10 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-08-22 14:45:19 +0200
commit8d1de0ebce71feb0961458dee7695f1f25767a92 (patch)
treef8c93531670d6b83cf4d7cf7448c99e41d3915b2 /drivers/usb/dwc3/dwc3-imx8mp.c
parentusb: cdc-acm: move ldisc dcd notification outside of acm's read lock (diff)
downloadlinux-8d1de0ebce71feb0961458dee7695f1f25767a92.tar.xz
linux-8d1de0ebce71feb0961458dee7695f1f25767a92.zip
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-imx8mp.c')
-rw-r--r--drivers/usb/dwc3/dwc3-imx8mp.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/dwc3/dwc3-imx8mp.c b/drivers/usb/dwc3/dwc3-imx8mp.c
index 4285bde58d2e..a1e15f2fffdb 100644
--- a/drivers/usb/dwc3/dwc3-imx8mp.c
+++ b/drivers/usb/dwc3/dwc3-imx8mp.c
@@ -280,7 +280,6 @@ static void dwc3_imx8mp_remove(struct platform_device *pdev)
pm_runtime_disable(dev);
pm_runtime_put_noidle(dev);
- platform_set_drvdata(pdev, NULL);
}
static int __maybe_unused dwc3_imx8mp_suspend(struct dwc3_imx8mp *dwc3_imx,