aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibo Chen <clbchenlibo.chen@huawei.com>2013-08-26 23:08:11 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-08-28 00:36:46 -0400
commitd143a8edcd4e84498e419a33a2af56b3e3a17b9a (patch)
treeabc3baa49b71d46d36e618c00115d8c178cd0f13
parentc9a0552e8df596b7cc43cbcd161c065c0046744d (diff)
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 <libo.chen@huawei.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/usb/host/ohci-at91.c2
1 files changed, 0 insertions, 2 deletions
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,
235 clk_put(fclk); 235 clk_put(fclk);
236 clk_put(iclk); 236 clk_put(iclk);
237 fclk = iclk = hclk = NULL; 237 fclk = iclk = hclk = NULL;
238
239 dev_set_drvdata(&pdev->dev, NULL);
240} 238}
241 239
242/*-------------------------------------------------------------------------*/ 240/*-------------------------------------------------------------------------*/