]> asedeno.scripts.mit.edu Git - 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Jun 2013 20:47:25 +0000 (13:47 -0700)
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 a2a6ac871f7a2a69adfa94d183eedc031b1ae554..59fab90ee73113ea3e993a734eca6babae41233c 100644 (file)
@@ -111,7 +111,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);
 }