projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af38487
)
usb: dwc3: Remove redundant pci_set_drvdata
author
Sachin Kamat
<sachin.kamat@linaro.org>
Fri, 20 Sep 2013 09:46:34 +0000
(15:16 +0530)
committer
Felipe Balbi
<balbi@ti.com>
Tue, 1 Oct 2013 14:31:20 +0000
(09:31 -0500)
Driver core sets driver data to NULL upon failure or remove.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/dwc3-pci.c
patch
|
blob
|
history
diff --git
a/drivers/usb/dwc3/dwc3-pci.c
b/drivers/usb/dwc3/dwc3-pci.c
index
2e252aa
..
31443ae
100644
(file)
--- a/
drivers/usb/dwc3/dwc3-pci.c
+++ b/
drivers/usb/dwc3/dwc3-pci.c
@@
-165,7
+165,6
@@
static int dwc3_pci_probe(struct pci_dev *pci,
return 0;
err3:
- pci_set_drvdata(pci, NULL);
platform_device_put(dwc3);
err1:
pci_disable_device(pci);
@@
-180,7
+179,6
@@
static void dwc3_pci_remove(struct pci_dev *pci)
platform_device_unregister(glue->dwc3);
platform_device_unregister(glue->usb2_phy);
platform_device_unregister(glue->usb3_phy);
- pci_set_drvdata(pci, NULL);
pci_disable_device(pci);
}