From: Libo Chen Date: Tue, 27 Aug 2013 03:08:11 +0000 (+0800) Subject: usb: ohci-at91: remove unnecessary dev_set_drvdata() X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=d143a8edcd4e84498e419a33a2af56b3e3a17b9a;p=deliverable%2Flinux.git 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. Signed-off-by: Libo Chen Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/host/ohci-at91.c b/drivers/usb/host/ohci-at91.c index b3cdd1467521..caa3764a3407 100644 --- a/drivers/usb/host/ohci-at91.c +++ b/drivers/usb/host/ohci-at91.c @@ -235,8 +235,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); } /*-------------------------------------------------------------------------*/