summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/pch_udc.c
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-09-20 13:36:40 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-09-26 04:23:28 +0400
commitd47aa4536dfc9385e02a4dcbed2cf7bea3a18492 (patch)
tree7060d8b0e93c70eb341ba4acd5d2559caea19bfe /drivers/usb/gadget/pch_udc.c
parentb85862654cdd9bfa71eb68ea8f672aa4fef15d22 (diff)
downloadlinux-d47aa4536dfc9385e02a4dcbed2cf7bea3a18492.tar.xz
usb: gadget: Remove redundant pci_set_drvdata
Driver core sets driver data to NULL upon failure or remove. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/gadget/pch_udc.c')
-rw-r--r--drivers/usb/gadget/pch_udc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/gadget/pch_udc.c b/drivers/usb/gadget/pch_udc.c
index 24174e1d1564..32d5e923750b 100644
--- a/drivers/usb/gadget/pch_udc.c
+++ b/drivers/usb/gadget/pch_udc.c
@@ -3080,7 +3080,6 @@ static void pch_udc_remove(struct pci_dev *pdev)
if (dev->active)
pci_disable_device(pdev);
kfree(dev);
- pci_set_drvdata(pdev, NULL);
}
#ifdef CONFIG_PM