]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
x86/platform: Switch back to struct platform_driver::remove()
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>
Mon, 21 Oct 2024 10:39:53 +0000 (12:39 +0200)
committerBorislav Petkov (AMD) <bp@alien8.de>
Mon, 21 Oct 2024 15:20:30 +0000 (17:20 +0200)
After

  0edb555a65d1 ("platform: Make platform_driver::remove() return void")

.remove() is (again) the right callback to implement for platform drivers.

Convert all platform drivers below arch/x86 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: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20241021103954.403577-2-u.kleine-koenig@baylibre.com
arch/x86/platform/iris/iris.c
arch/x86/platform/olpc/olpc-xo1-pm.c
arch/x86/platform/olpc/olpc-xo1-sci.c

index c5f3bbdbdcfef61383b5d1f706fbfa9e4a18d510..5591a2d9cfe8a2133a632d88800bf9395fb2aaee 100644 (file)
@@ -73,7 +73,7 @@ static struct platform_driver iris_driver = {
                .name   = "iris",
        },
        .probe          = iris_probe,
-       .remove_new     = iris_remove,
+       .remove         = iris_remove,
 };
 
 static struct resource iris_resources[] = {
index 6a9c42de74e74fe8178cfb533860cd3fba78a404..424eeae127591a253eaeae5bcaf0c5d40ae6e847 100644 (file)
@@ -159,7 +159,7 @@ static struct platform_driver cs5535_pms_driver = {
                .name = "cs5535-pms",
        },
        .probe = xo1_pm_probe,
-       .remove_new = xo1_pm_remove,
+       .remove = xo1_pm_remove,
 };
 
 static struct platform_driver cs5535_acpi_driver = {
@@ -167,7 +167,7 @@ static struct platform_driver cs5535_acpi_driver = {
                .name = "olpc-xo1-pm-acpi",
        },
        .probe = xo1_pm_probe,
-       .remove_new = xo1_pm_remove,
+       .remove = xo1_pm_remove,
 };
 
 static int __init xo1_pm_init(void)
index 46d42ff6e18ab596b599d22abae85fc1736ec38e..ccb23c73cbe8b216523eb425f49d7eebc2dca5fb 100644 (file)
@@ -616,7 +616,7 @@ static struct platform_driver xo1_sci_driver = {
                .dev_groups = lid_groups,
        },
        .probe = xo1_sci_probe,
-       .remove_new = xo1_sci_remove,
+       .remove = xo1_sci_remove,
        .suspend = xo1_sci_suspend,
        .resume = xo1_sci_resume,
 };