]> Gentwo Git Trees - linux/.git/commit
PCI: sg2042: Fix a reference count issue in sg2042_pcie_remove()
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Mon, 29 Sep 2025 18:13:22 +0000 (20:13 +0200)
committerManivannan Sadhasivam <mani@kernel.org>
Mon, 20 Oct 2025 05:16:59 +0000 (10:46 +0530)
commit932ec9dff6da40382ee63049a11a6ff047bdc259
tree6378ea9c73fa9c94abc6b628975fe1cbdda2aa22
parent3a8660878839faadb4f1a6dd72c3179c1df56787
PCI: sg2042: Fix a reference count issue in sg2042_pcie_remove()

devm_pm_runtime_enable() is used in the probe, so pm_runtime_disable()
should not be called explicitly in the remove function.

Fixes: 1c72774df028 ("PCI: sg2042: Add Sophgo SG2042 PCIe driver")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Tested-by: Chen Wang <unicorn_wang@outlook.com> # on Pioneerbox.
Acked-by: Chen Wang <unicorn_wang@outlook.com>
Link: https://patch.msgid.link/242eca0ff6601de7966a53706e9950fbcb10aac8.1759169586.git.christophe.jaillet@wanadoo.fr
drivers/pci/controller/cadence/pcie-sg2042.c