mirror of
https://github.com/torvalds/linux.git
synced 2026-08-02 13:22:02 +02:00
usb: dwc3: 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: Felipe Balbi <balbi@ti.com>
This commit is contained in:
parent
af38487572
commit
161bfa98ba
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user