]> git.baikalelectronics.ru Git - kernel.git/commitdiff
usb: ohci-at91: remove unnecessary dev_set_drvdata()
authorLibo Chen <clbchenlibo.chen@huawei.com>
Tue, 27 Aug 2013 03:08:11 +0000 (11:08 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Aug 2013 04:36:46 +0000 (21:36 -0700)
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>
drivers/usb/host/ohci-at91.c

index b3cdd1467521c0d40f7805d349b35e998b51a6cb..caa3764a34075e4735a9aca7d907f8fa693fde83 100644 (file)
@@ -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);
 }
 
 /*-------------------------------------------------------------------------*/