]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
usb: chipidea: remove superfluous pci_set_drvdata(pci, NULL)
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 13 Jun 2013 15:00:01 +0000 (18:00 +0300)
committerJason Liu <r64343@freescale.com>
Wed, 30 Oct 2013 01:54:11 +0000 (09:54 +0800)
As drvdata is cleared to NULL at probe failure or at removal by the driver
core, we don't have to call pci_set_drvdata(pci, NULL) any longer in each
driver.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/chipidea/ci13xxx_pci.c

index 4e1fc61b9d95201c5bfd119cd8be8f6e9b8db6ba..15cef1e242a26649d42d83c67024edce4a60b393 100644 (file)
@@ -112,7 +112,6 @@ static void ci13xxx_pci_remove(struct pci_dev *pdev)
        struct platform_device *plat_ci = pci_get_drvdata(pdev);
 
        ci13xxx_remove_device(plat_ci);
-       pci_set_drvdata(pdev, NULL);
        pci_disable_device(pdev);
 }