Skip to content

Commit 43d6961

Browse files
parakabjorn-helgaas
authored andcommitted
PCI: acpiphp_ampere_altra: Switch back to struct platform_driver::remove()
After commit 0edb555 ("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/[email protected] Signed-off-by: Sergio Paracuellos <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]>
1 parent 3c87b3c commit 43d6961

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pci/hotplug/acpiphp_ampere_altra.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ static struct platform_driver altra_led_driver = {
119119
.acpi_match_table = altra_led_ids,
120120
},
121121
.probe = altra_led_probe,
122-
.remove_new = altra_led_remove,
122+
.remove = altra_led_remove,
123123
};
124124
module_platform_driver(altra_led_driver);
125125

0 commit comments

Comments
 (0)