Skip to contentSkip to conversation

usb: ohci-at91: remove unnecessary dev_set_drvdata()

PATCH New Libo Chen 1 participant 1 message Aug 27, 2013

Subsystems (3)
lore
Share & tools
lore

Libo Chen

author
#0 lore raw

PATCH 1/1 usb: ohci-at91: remove unnecessary dev_set_drvdata()

Unnecessary dev_set_drvdata() is removed, because the driver core clears the driver data to NULL after device_release or on probe failure.

---
 drivers/usb/host/ohci-at91.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
drivers/usb/host/ohci-at91.c +0 -2
index 9677f68..b49a6c8 100644
@@ -216,8 +216,6 @@ static void usb_hcd_at91_remove(struct usb_hcd *hcd,
 	clk_put(fclk);
 	clk_put(iclk);
 	fclk = iclk = hclk = NULL;
-
-	dev_set_drvdata(&pdev->dev, NULL);
 }
 
 /*-------------------------------------------------------------------------*/
Signature · 1 line
1.7.1