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 <[email protected]>
---
 drivers/usb/chipidea/ci13xxx_pci.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/usb/chipidea/ci13xxx_pci.c 
b/drivers/usb/chipidea/ci13xxx_pci.c
index a2a6ac8..59fab90 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);
 }
 
-- 
1.8.2.rc0.22.gb3600c3

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to