diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2013-06-13 19:00:01 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-06-18 00:47:25 +0400 |
commit | 54b448e5e4d2215974b959a97ead55bb9218904c (patch) | |
tree | 5e8c8f31665ec52918475ac23b2e6b235d2e5dc8 /drivers/usb | |
parent | ea1418b5f1a394d11c8cdb91ef19d24dcd9c0045 (diff) | |
download | linux-54b448e5e4d2215974b959a97ead55bb9218904c.tar.xz |
usb: chipidea: remove superfluous pci_set_drvdata(pci, NULL)
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>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/chipidea/ci13xxx_pci.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/chipidea/ci13xxx_pci.c b/drivers/usb/chipidea/ci13xxx_pci.c index a2a6ac871f7a..59fab90ee731 100644 --- a/drivers/usb/chipidea/ci13xxx_pci.c +++ b/drivers/usb/chipidea/ci13xxx_pci.c @@ -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); } |