summaryrefslogtreecommitdiff
path: root/drivers/pci/controller/pcie-altera.c
diff options
context:
space:
mode:
authorSergio Paracuellos <sergio.paracuellos@gmail.com>2024-09-23 08:57:06 +0200
committerBjorn Helgaas <bhelgaas@google.com>2024-10-03 16:44:49 -0500
commit3c87b3c85a5344098f239bf8fceee1db691e3a0c (patch)
tree9b78fcbb25d993b470520023446e5d167e9e833b /drivers/pci/controller/pcie-altera.c
parent9852d85ec9d492ebef56dc5f229416c925758edc (diff)
downloadlinux-3c87b3c85a5344098f239bf8fceee1db691e3a0c.tar.gz
linux-3c87b3c85a5344098f239bf8fceee1db691e3a0c.tar.bz2
linux-3c87b3c85a5344098f239bf8fceee1db691e3a0c.zip
PCI: controller: Switch back to struct platform_driver::remove()
After commit 0edb555a65d1 ("platform: Make platform_driver::remove() return void") .remove() is (again) the right callback to implement for platform drivers. Convert all PCI controller drivers to use .remove(), with the eventual goal to drop struct platform_driver::remove_new(). As .remove() and .remove_new() have the same prototypes, conversion is done by just changing the structure member name in the driver initializer. Link: https://lore.kernel.org/r/20240923065706.728769-1-sergio.paracuellos@gmail.com Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> [bhelgaas: add pcie-xilinx-nwl.c and tidy whitespace per Uwe Kleine-König: https://lore.kernel.org/r/tdxrmmqyzcufupnwkdbg7lwgadizm7v3lxjirykijbml7x54ze@upbdzycdsilm] Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/controller/pcie-altera.c')
-rw-r--r--drivers/pci/controller/pcie-altera.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/pci/controller/pcie-altera.c b/drivers/pci/controller/pcie-altera.c
index 650b2dd81c48..eb55a7f8573a 100644
--- a/drivers/pci/controller/pcie-altera.c
+++ b/drivers/pci/controller/pcie-altera.c
@@ -815,10 +815,10 @@ static void altera_pcie_remove(struct platform_device *pdev)
}
static struct platform_driver altera_pcie_driver = {
- .probe = altera_pcie_probe,
- .remove_new = altera_pcie_remove,
+ .probe = altera_pcie_probe,
+ .remove = altera_pcie_remove,
.driver = {
- .name = "altera-pcie",
+ .name = "altera-pcie",
.of_match_table = altera_pcie_of_match,
},
};