[PATCH 3/3] usb: gr_udc: Remove unnecessary platform_set_drvdata().

From: Sandhya Bankar
Date: Wed May 11 2016 - 15:46:19 EST


Unnecessary [platform|pci]_set_drvdata() have been removed since the driver core clears the driver data to NULLafter device release or on probe failure. There is no need to manually clear the device driver data to NULL.

Signed-off-by: Sandhya Bankar <bankarsandhya512@xxxxxxxxx>
---
drivers/usb/gadget/udc/gr_udc.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/drivers/usb/gadget/udc/gr_udc.c b/drivers/usb/gadget/udc/gr_udc.c
index 39b7136..05f956c 100644
--- a/drivers/usb/gadget/udc/gr_udc.c
+++ b/drivers/usb/gadget/udc/gr_udc.c
@@ -2117,7 +2117,6 @@ static int gr_remove(struct platform_device *pdev)

gr_dfs_delete(dev);
dma_pool_destroy(dev->desc_pool);
- platform_set_drvdata(pdev, NULL);

gr_free_request(&dev->epi[0].ep, &dev->ep0reqi->req);
gr_free_request(&dev->epo[0].ep, &dev->ep0reqo->req);
--
1.8.3.4