linux-yocto/drivers/usb/cdns3
Miaoqian Lin 01ffce6960 usb: cdns3: cdnsp-pci: remove redundant pci_disable_device() call
commit e9c206324eeb213957a567a9d066bdeb355c7491 upstream.

The cdnsp-pci driver uses pcim_enable_device() to enable a PCI device,
which means the device will be automatically disabled on driver detach
through the managed device framework. The manual pci_disable_device()
call in the error path is therefore redundant.

Found via static anlaysis and this is similar to commit 99ca0b57e4
("thermal: intel: int340x: processor: Fix warning during module unload").

Fixes: 3d82904559 ("usb: cdnsp: cdns3 Add main part of Cadence USBSSP DRD Driver")
Cc: stable@vger.kernel.org
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Link: https://lore.kernel.org/r/20250903141613.2535472-1-linmq006@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-10-15 11:56:41 +02:00
..
cdns3-debug.h
cdns3-ep0.c
cdns3-gadget.c
cdns3-gadget.h
cdns3-imx.c
cdns3-pci-wrap.c
cdns3-plat.c
cdns3-ti.c
cdns3-trace.c
cdns3-trace.h
cdnsp-debug.h usb: cdnsp: Fix issue with CV Bad Descriptor test 2025-07-17 18:32:10 +02:00
cdnsp-ep0.c usb: cdnsp: Fix issue with CV Bad Descriptor test 2025-07-17 18:32:10 +02:00
cdnsp-gadget.c usb:cdnsp: remove TRB_FLUSH_ENDPOINT command 2025-07-17 18:32:10 +02:00
cdnsp-gadget.h usb: cdnsp: Fix issue with CV Bad Descriptor test 2025-07-17 18:32:10 +02:00
cdnsp-mem.c
cdnsp-pci.c usb: cdns3: cdnsp-pci: remove redundant pci_disable_device() call 2025-10-15 11:56:41 +02:00
cdnsp-ring.c usb: cdnsp: Fix issue with CV Bad Descriptor test 2025-07-17 18:32:10 +02:00
cdnsp-trace.c
cdnsp-trace.h
core.c
core.h usb: cdnsp: Fix issue with resuming from L1 2025-05-18 08:21:23 +02:00
drd.c
drd.h
gadget-export.h
host-export.h
host.c
Kconfig
Makefile