PCI: dwc: ep: Remove deinit() callback from struct dw_pcie_ep_ops
authorManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Wed, 27 Mar 2024 09:13:32 +0000 (14:43 +0530)
committerKrzysztof Wilczyński <kwilczynski@kernel.org>
Wed, 10 Apr 2024 17:48:41 +0000 (17:48 +0000)
commitb7dec6b85089fcadf2478e22429d4e1863f95294
tree9f274d0b2d676626a5f3c8c32ddd5e38dab2e800
parent7cbebc86c72aa215802ad159d60ecaf9a20d5530
PCI: dwc: ep: Remove deinit() callback from struct dw_pcie_ep_ops

deinit() callback was solely introduced for the pcie-rcar-gen4 driver where
it is used to do platform specific resource deallocation. And this callback
is called right at the end of the dw_pcie_ep_exit() API. So it doesn't
matter whether it is called within or outside of dw_pcie_ep_exit() API.

So let's remove this callback and directly call rcar_gen4_pcie_ep_deinit()
in pcie-rcar-gen4 driver to do resource deallocation after the completion
of dw_pcie_ep_exit() API in rcar_gen4_remove_dw_pcie_ep().

This simplifies the DWC layer.

Link: https://lore.kernel.org/linux-pci/20240327-pci-dbi-rework-v12-3-082625472414@linaro.org
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Reviewed-by: Niklas Cassel <cassel@kernel.org>
Reviewed-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
drivers/pci/controller/dwc/pcie-designware-ep.c
drivers/pci/controller/dwc/pcie-designware.h
drivers/pci/controller/dwc/pcie-rcar-gen4.c