dwc3-pci.c (26b76320a8a550472bbb8f42257df83fcb8d8df6) dwc3-pci.c (7b412b04a0c7000293008231ce8413056abb1982)
1// SPDX-License-Identifier: GPL-2.0
2/**
3 * dwc3-pci.c - PCI Specific glue layer
4 *
5 * Copyright (C) 2010-2011 Texas Instruments Incorporated - http://www.ti.com
6 *
7 * Authors: Felipe Balbi <balbi@ti.com>,
8 * Sebastian Andrzej Siewior <bigeasy@linutronix.de>

--- 269 unchanged lines hidden (view full) ---

278err:
279 platform_device_put(dwc->dwc3);
280 return ret;
281}
282
283static void dwc3_pci_remove(struct pci_dev *pci)
284{
285 struct dwc3_pci *dwc = pci_get_drvdata(pci);
1// SPDX-License-Identifier: GPL-2.0
2/**
3 * dwc3-pci.c - PCI Specific glue layer
4 *
5 * Copyright (C) 2010-2011 Texas Instruments Incorporated - http://www.ti.com
6 *
7 * Authors: Felipe Balbi <balbi@ti.com>,
8 * Sebastian Andrzej Siewior <bigeasy@linutronix.de>

--- 269 unchanged lines hidden (view full) ---

278err:
279 platform_device_put(dwc->dwc3);
280 return ret;
281}
282
283static void dwc3_pci_remove(struct pci_dev *pci)
284{
285 struct dwc3_pci *dwc = pci_get_drvdata(pci);
286 struct pci_dev *pdev = dwc->pci;
286
287
287 gpiod_remove_lookup_table(&platform_bytcr_gpios);
288 if (pdev->device == PCI_DEVICE_ID_INTEL_BYT)
289 gpiod_remove_lookup_table(&platform_bytcr_gpios);
288#ifdef CONFIG_PM
289 cancel_work_sync(&dwc->wakeup_work);
290#endif
291 device_init_wakeup(&pci->dev, false);
292 pm_runtime_get(&pci->dev);
293 platform_device_unregister(dwc->dwc3);
294}
295

--- 135 unchanged lines hidden ---
290#ifdef CONFIG_PM
291 cancel_work_sync(&dwc->wakeup_work);
292#endif
293 device_init_wakeup(&pci->dev, false);
294 pm_runtime_get(&pci->dev);
295 platform_device_unregister(dwc->dwc3);
296}
297

--- 135 unchanged lines hidden ---