Commit 43d6961c authored by Sergio Paracuellos's avatar Sergio Paracuellos Committed by Bjorn Helgaas
Browse files

PCI: acpiphp_ampere_altra: Switch back to struct platform_driver::remove()

After commit 0edb555a ("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: default avatarSergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
parent 3c87b3c8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);