fbdev: Switch back to struct platform_driver::remove()

After commit 0edb555a65 ("platform: Make platform_driver::remove()
return void") .remove() is (again) the right callback to implement for
platform drivers.

Convert all platform drivers below drivers/video/fbdev 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.

While touching these files, make indention of the struct initializer
consistent in several files.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
Uwe Kleine-König
2024-10-07 18:35:17 +02:00
committed by Helge Deller
parent 8cf0b93919
commit 01ecc142ef
70 changed files with 88 additions and 88 deletions

View File

@@ -3774,8 +3774,8 @@ static void __exit amifb_remove(struct platform_device *pdev)
* triggers a section mismatch warning.
*/
static struct platform_driver amifb_driver __refdata = {
.remove_new = __exit_p(amifb_remove),
.driver = {
.remove = __exit_p(amifb_remove),
.driver = {
.name = "amiga-video",
},
};

View File

@@ -548,7 +548,7 @@ static void arcfb_remove(struct platform_device *dev)
static struct platform_driver arcfb_driver = {
.probe = arcfb_probe,
.remove_new = arcfb_remove,
.remove = arcfb_remove,
.driver = {
.name = "arcfb",
},

View File

@@ -1299,7 +1299,7 @@ static int atmel_lcdfb_resume(struct platform_device *pdev)
static struct platform_driver atmel_lcdfb_driver = {
.probe = atmel_lcdfb_probe,
.remove_new = atmel_lcdfb_remove,
.remove = atmel_lcdfb_remove,
.suspend = atmel_lcdfb_suspend,
.resume = atmel_lcdfb_resume,
.driver = {

View File

@@ -588,7 +588,7 @@ static struct platform_driver au1100fb_driver = {
.name = "au1100-lcd",
},
.probe = au1100fb_drv_probe,
.remove_new = au1100fb_drv_remove,
.remove = au1100fb_drv_remove,
.suspend = au1100fb_drv_suspend,
.resume = au1100fb_drv_resume,
};

View File

@@ -1833,7 +1833,7 @@ static struct platform_driver au1200fb_driver = {
.pm = AU1200FB_PMOPS,
},
.probe = au1200fb_drv_probe,
.remove_new = au1200fb_drv_remove,
.remove = au1200fb_drv_remove,
};
module_platform_driver(au1200fb_driver);

View File

@@ -1151,7 +1151,7 @@ static void broadsheetfb_remove(struct platform_device *dev)
static struct platform_driver broadsheetfb_driver = {
.probe = broadsheetfb_probe,
.remove_new = broadsheetfb_remove,
.remove = broadsheetfb_remove,
.driver = {
.name = "broadsheetfb",
},

View File

@@ -372,7 +372,7 @@ static struct platform_driver bw2_driver = {
.of_match_table = bw2_match,
},
.probe = bw2_probe,
.remove_new = bw2_remove,
.remove = bw2_remove,
};
static int __init bw2_init(void)

View File

@@ -590,7 +590,7 @@ static struct platform_driver cg14_driver = {
.of_match_table = cg14_match,
},
.probe = cg14_probe,
.remove_new = cg14_remove,
.remove = cg14_remove,
};
static int __init cg14_init(void)

View File

@@ -458,7 +458,7 @@ static struct platform_driver cg3_driver = {
.of_match_table = cg3_match,
},
.probe = cg3_probe,
.remove_new = cg3_remove,
.remove = cg3_remove,
};
static int __init cg3_init(void)

View File

@@ -858,7 +858,7 @@ static struct platform_driver cg6_driver = {
.of_match_table = cg6_match,
},
.probe = cg6_probe,
.remove_new = cg6_remove,
.remove = cg6_remove,
};
static int __init cg6_init(void)

View File

@@ -371,7 +371,7 @@ static struct platform_driver clps711x_fb_driver = {
.of_match_table = clps711x_fb_dt_ids,
},
.probe = clps711x_fb_probe,
.remove_new = clps711x_fb_remove,
.remove = clps711x_fb_remove,
};
module_platform_driver(clps711x_fb_driver);

View File

@@ -344,7 +344,7 @@ static void cobalt_lcdfb_remove(struct platform_device *dev)
static struct platform_driver cobalt_lcdfb_driver = {
.probe = cobalt_lcdfb_probe,
.remove_new = cobalt_lcdfb_remove,
.remove = cobalt_lcdfb_remove,
.driver = {
.name = "cobalt-lcd",
},

View File

@@ -1652,7 +1652,7 @@ static SIMPLE_DEV_PM_OPS(fb_pm_ops, fb_suspend, fb_resume);
static struct platform_driver da8xx_fb_driver = {
.probe = fb_probe,
.remove_new = fb_remove,
.remove = fb_remove,
.driver = {
.name = DRIVER_NAME,
.pm = &fb_pm_ops,

View File

@@ -592,7 +592,7 @@ static void ep93xxfb_remove(struct platform_device *pdev)
static struct platform_driver ep93xxfb_driver = {
.probe = ep93xxfb_probe,
.remove_new = ep93xxfb_remove,
.remove = ep93xxfb_remove,
.driver = {
.name = "ep93xx-fb",
},

View File

@@ -1053,7 +1053,7 @@ static struct platform_driver ffb_driver = {
.of_match_table = ffb_match,
},
.probe = ffb_probe,
.remove_new = ffb_remove,
.remove = ffb_remove,
};
static int __init ffb_init(void)

View File

@@ -1876,12 +1876,12 @@ static const struct of_device_id fsl_diu_match[] = {
MODULE_DEVICE_TABLE(of, fsl_diu_match);
static struct platform_driver fsl_diu_driver = {
.driver = {
.driver = {
.name = "fsl-diu-fb",
.of_match_table = fsl_diu_match,
},
.probe = fsl_diu_probe,
.remove_new = fsl_diu_remove,
.probe = fsl_diu_probe,
.remove = fsl_diu_remove,
.suspend = fsl_diu_suspend,
.resume = fsl_diu_resume,
};

View File

@@ -1247,10 +1247,10 @@ static void gbefb_remove(struct platform_device* p_dev)
static struct platform_driver gbefb_driver = {
.probe = gbefb_probe,
.remove_new = gbefb_remove,
.driver = {
.remove = gbefb_remove,
.driver = {
.name = "gbefb",
.dev_groups = gbefb_groups,
.dev_groups = gbefb_groups,
},
};

View File

@@ -311,7 +311,7 @@ MODULE_DEVICE_TABLE(acpi, goldfish_fb_acpi_match);
static struct platform_driver goldfish_fb_driver = {
.probe = goldfish_fb_probe,
.remove_new = goldfish_fb_remove,
.remove = goldfish_fb_remove,
.driver = {
.name = "goldfish_fb",
.of_match_table = goldfish_fb_of_match,

View File

@@ -540,7 +540,7 @@ static struct platform_driver grvga_driver = {
.of_match_table = svgactrl_of_match,
},
.probe = grvga_probe,
.remove_new = grvga_remove,
.remove = grvga_remove,
};
module_platform_driver(grvga_driver);

View File

@@ -235,7 +235,7 @@ static void hecubafb_remove(struct platform_device *dev)
static struct platform_driver hecubafb_driver = {
.probe = hecubafb_probe,
.remove_new = hecubafb_remove,
.remove = hecubafb_remove,
.driver = {
.name = "hecubafb",
},

Some files were not shown because too many files have changed in this diff Show More