public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] usb: ohci-at91: remove unnecessary dev_set_drvdata()
@ 2013-08-27  3:08 Libo Chen
  0 siblings, 0 replies; only message in thread
From: Libo Chen @ 2013-08-27  3:08 UTC (permalink / raw)
  To: Greg KH, stern; +Cc: USB, LKML, Li Zefan


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

Signed-off-by: Libo Chen <libo.chen@huawei.com>
---
 drivers/usb/host/ohci-at91.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/drivers/usb/host/ohci-at91.c b/drivers/usb/host/ohci-at91.c
index 9677f68..b49a6c8 100644
--- a/drivers/usb/host/ohci-at91.c
+++ b/drivers/usb/host/ohci-at91.c
@@ -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);
 }

 /*-------------------------------------------------------------------------*/
-- 
1.7.1


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-08-27  3:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-27  3:08 [PATCH] usb: ohci-at91: remove unnecessary dev_set_drvdata() Libo Chen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox