* [PATCH] PCI: acpiphp_ampere_altra: Switch back to struct platform_driver::remove()
@ 2024-09-27 9:24 Sergio Paracuellos
2024-10-01 20:50 ` Bjorn Helgaas
0 siblings, 1 reply; 2+ messages in thread
From: Sergio Paracuellos @ 2024-09-27 9:24 UTC (permalink / raw)
To: linux-pci; +Cc: rafael, lenb, bhelgaas, linux-acpi, linux-kernel
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.
Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
---
drivers/pci/hotplug/acpiphp_ampere_altra.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Hi Bjorn,
This is the last 'remove_new' inside 'drivers/pci' folder. Since it is
not in controller I preferred to sent this patch alone.
Thanks,
Sergio Paracuellos
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);
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] PCI: acpiphp_ampere_altra: Switch back to struct platform_driver::remove()
2024-09-27 9:24 [PATCH] PCI: acpiphp_ampere_altra: Switch back to struct platform_driver::remove() Sergio Paracuellos
@ 2024-10-01 20:50 ` Bjorn Helgaas
0 siblings, 0 replies; 2+ messages in thread
From: Bjorn Helgaas @ 2024-10-01 20:50 UTC (permalink / raw)
To: Sergio Paracuellos
Cc: linux-pci, rafael, lenb, bhelgaas, linux-acpi, linux-kernel
On Fri, Sep 27, 2024 at 11:24:49AM +0200, Sergio Paracuellos wrote:
> 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.
>
> Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Applied to pci/driver-remove for v6.13, thanks.
I also moved the controller patch to this branch so they're all
together.
> ---
> drivers/pci/hotplug/acpiphp_ampere_altra.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> Hi Bjorn,
>
> This is the last 'remove_new' inside 'drivers/pci' folder. Since it is
> not in controller I preferred to sent this patch alone.
>
> Thanks,
> Sergio Paracuellos
>
> 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);
>
> --
> 2.25.1
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-10-01 20:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-27 9:24 [PATCH] PCI: acpiphp_ampere_altra: Switch back to struct platform_driver::remove() Sergio Paracuellos
2024-10-01 20:50 ` Bjorn Helgaas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).