diff options
author | Sergio Paracuellos <sergio.paracuellos@gmail.com> | 2024-09-27 11:24:49 +0200 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2024-10-03 23:45:55 +0200 |
commit | 43d6961cdf1d0621c55638ed33554027978ae1fe (patch) | |
tree | 180cd981939dbff44e00370219b5d0b7193b446c /drivers/pci | |
parent | PCI: controller: Switch back to struct platform_driver::remove() (diff) | |
download | linux-43d6961cdf1d0621c55638ed33554027978ae1fe.tar.xz linux-43d6961cdf1d0621c55638ed33554027978ae1fe.zip |
PCI: acpiphp_ampere_altra: 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/20240927092449.44628-1-sergio.paracuellos@gmail.com
Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/hotplug/acpiphp_ampere_altra.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/hotplug/acpiphp_ampere_altra.c b/drivers/pci/hotplug/acpiphp_ampere_altra.c index f5c9e741c1d4..70dbc0431fc6 100644 --- a/drivers/pci/hotplug/acpiphp_ampere_altra.c +++ b/drivers/pci/hotplug/acpiphp_ampere_altra.c @@ -119,7 +119,7 @@ static struct platform_driver altra_led_driver = { .acpi_match_table = altra_led_ids, }, .probe = altra_led_probe, - .remove_new = altra_led_remove, + .remove = altra_led_remove, }; module_platform_driver(altra_led_driver); |