Skip to content

Commit

Permalink
Merge tag 'fbdev-for-6.12-rc3' of git://git.kernel.org/pub/scm/linux/…
Browse files Browse the repository at this point in the history
…kernel/git/deller/linux-fbdev

Pull fbdev platform driver fix from Helge Deller:
 "Switch fbdev drivers back to struct platform_driver::remove()

  Now that 'remove()' has been converted to the sane new API, there's
  no reason for the 'remove_new()' use, so this converts back to the
  traditional and simpler name.

  See commits

     5c5a768 ("platform: Provide a remove callback that returns no value")
     0edb555 ("platform: Make platform_driver::remove() return void")

  for background to this all"

* tag 'fbdev-for-6.12-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/linux-fbdev:
  fbdev: Switch back to struct platform_driver::remove()
  • Loading branch information
torvalds committed Oct 11, 2024
2 parents 547fc32 + 01ecc14 commit 9066258
Show file tree
Hide file tree
Showing 70 changed files with 88 additions and 88 deletions.
4 changes: 2 additions & 2 deletions drivers/video/fbdev/amifb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/fbdev/arcfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/fbdev/atmel_lcdfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/fbdev/au1100fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/fbdev/au1200fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion drivers/video/fbdev/broadsheetfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/fbdev/bw2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/fbdev/cg14.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/fbdev/cg3.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/fbdev/cg6.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/fbdev/clps711x-fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion drivers/video/fbdev/cobalt_lcdfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/fbdev/da8xx-fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/fbdev/ep93xx-fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/fbdev/ffb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions drivers/video/fbdev/fsl-diu-fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down
6 changes: 3 additions & 3 deletions drivers/video/fbdev/gbefb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
};

Expand Down
2 changes: 1 addition & 1 deletion drivers/video/fbdev/goldfishfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/fbdev/grvga.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/fbdev/hecubafb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/fbdev/hgafb.c
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ static void hgafb_remove(struct platform_device *pdev)

static struct platform_driver hgafb_driver = {
.probe = hgafb_probe,
.remove_new = hgafb_remove,
.remove = hgafb_remove,
.driver = {
.name = "hgafb",
},
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/fbdev/hitfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ static const struct dev_pm_ops hitfb_dev_pm_ops = {

static struct platform_driver hitfb_driver = {
.probe = hitfb_probe,
.remove_new = hitfb_remove,
.remove = hitfb_remove,
.driver = {
.name = "hitfb",
.pm = &hitfb_dev_pm_ops,
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/fbdev/imxfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1105,7 +1105,7 @@ static struct platform_driver imxfb_driver = {
.pm = pm_sleep_ptr(&imxfb_pm_ops),
},
.probe = imxfb_probe,
.remove_new = imxfb_remove,
.remove = imxfb_remove,
.id_table = imxfb_devtype,
};
module_platform_driver(imxfb_driver);
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/fbdev/leo.c
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ static struct platform_driver leo_driver = {
.of_match_table = leo_match,
},
.probe = leo_probe,
.remove_new = leo_remove,
.remove = leo_remove,
};

static int __init leo_init(void)
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/fbdev/mb862xx/mb862xxfbdrv.c
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@ static struct platform_driver of_platform_mb862xxfb_driver = {
.of_match_table = of_platform_mb862xx_tbl,
},
.probe = of_platform_mb862xx_probe,
.remove_new = of_platform_mb862xx_remove,
.remove = of_platform_mb862xx_remove,
};
#endif

Expand Down
2 changes: 1 addition & 1 deletion drivers/video/fbdev/metronomefb.c
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ static void metronomefb_remove(struct platform_device *dev)

static struct platform_driver metronomefb_driver = {
.probe = metronomefb_probe,
.remove_new = metronomefb_remove,
.remove = metronomefb_remove,
.driver = {
.name = "metronomefb",
},
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/fbdev/ocfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ MODULE_DEVICE_TABLE(of, ocfb_match);

static struct platform_driver ocfb_driver = {
.probe = ocfb_probe,
.remove_new = ocfb_remove,
.remove = ocfb_remove,
.driver = {
.name = "ocfb_fb",
.of_match_table = ocfb_match,
Expand Down
4 changes: 2 additions & 2 deletions drivers/video/fbdev/offb.c
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ static struct platform_driver offb_driver_bootx_noscreen = {
.name = "bootx-noscreen",
},
.probe = offb_probe_bootx_noscreen,
.remove_new = offb_remove,
.remove = offb_remove,
};

static int offb_probe_display(struct platform_device *pdev)
Expand All @@ -695,7 +695,7 @@ static struct platform_driver offb_driver_display = {
.of_match_table = offb_of_match_display,
},
.probe = offb_probe_display,
.remove_new = offb_remove,
.remove = offb_remove,
};

static int __init offb_init(void)
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/fbdev/omap/omapfb_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1825,7 +1825,7 @@ static int omapfb_resume(struct platform_device *pdev)

static struct platform_driver omapfb_driver = {
.probe = omapfb_probe,
.remove_new = omapfb_remove,
.remove = omapfb_remove,
.suspend = omapfb_suspend,
.resume = omapfb_resume,
.driver = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ MODULE_DEVICE_TABLE(of, tvc_of_match);

static struct platform_driver tvc_connector_driver = {
.probe = tvc_probe,
.remove_new = tvc_remove,
.remove = tvc_remove,
.driver = {
.name = "connector-analog-tv",
.of_match_table = tvc_of_match,
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/fbdev/omap2/omapfb/displays/connector-dvi.c
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ MODULE_DEVICE_TABLE(of, dvic_of_match);

static struct platform_driver dvi_connector_driver = {
.probe = dvic_probe,
.remove_new = dvic_remove,
.remove = dvic_remove,
.driver = {
.name = "connector-dvi",
.of_match_table = dvic_of_match,
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/fbdev/omap2/omapfb/displays/connector-hdmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ MODULE_DEVICE_TABLE(of, hdmic_of_match);

static struct platform_driver hdmi_connector_driver = {
.probe = hdmic_probe,
.remove_new = hdmic_remove,
.remove = hdmic_remove,
.driver = {
.name = "connector-hdmi",
.of_match_table = hdmic_of_match,
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/fbdev/omap2/omapfb/displays/encoder-opa362.c
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ MODULE_DEVICE_TABLE(of, opa362_of_match);

static struct platform_driver opa362_driver = {
.probe = opa362_probe,
.remove_new = opa362_remove,
.remove = opa362_remove,
.driver = {
.name = "amplifier-opa362",
.of_match_table = opa362_of_match,
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/fbdev/omap2/omapfb/displays/encoder-tfp410.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ MODULE_DEVICE_TABLE(of, tfp410_of_match);

static struct platform_driver tfp410_driver = {
.probe = tfp410_probe,
.remove_new = tfp410_remove,
.remove = tfp410_remove,
.driver = {
.name = "tfp410",
.of_match_table = tfp410_of_match,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ MODULE_DEVICE_TABLE(of, tpd_of_match);

static struct platform_driver tpd_driver = {
.probe = tpd_probe,
.remove_new = tpd_remove,
.remove = tpd_remove,
.driver = {
.name = "tpd12s015",
.of_match_table = tpd_of_match,
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/fbdev/omap2/omapfb/displays/panel-dpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ MODULE_DEVICE_TABLE(of, panel_dpi_of_match);

static struct platform_driver panel_dpi_driver = {
.probe = panel_dpi_probe,
.remove_new = panel_dpi_remove,
.remove = panel_dpi_remove,
.driver = {
.name = "panel-dpi",
.of_match_table = panel_dpi_of_match,
Expand Down
2 changes: 1 addition & 1 deletion drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1275,7 +1275,7 @@ MODULE_DEVICE_TABLE(of, dsicm_of_match);

static struct platform_driver dsicm_driver = {
.probe = dsicm_probe,
.remove_new = dsicm_remove,
.remove = dsicm_remove,
.driver = {
.name = "panel-dsi-cm",
.of_match_table = dsicm_of_match,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ MODULE_DEVICE_TABLE(of, sharp_ls_of_match);

static struct platform_driver sharp_ls_driver = {
.probe = sharp_ls_probe,
.remove_new = sharp_ls_remove,
.remove = sharp_ls_remove,
.driver = {
.name = "panel-sharp-ls037v7dw01",
.of_match_table = sharp_ls_of_match,
Expand Down
6 changes: 3 additions & 3 deletions drivers/video/fbdev/omap2/omapfb/dss/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,10 @@ static void omap_dss_shutdown(struct platform_device *pdev)
}

static struct platform_driver omap_dss_driver = {
.remove_new = omap_dss_remove,
.remove = omap_dss_remove,
.shutdown = omap_dss_shutdown,
.driver = {
.name = "omapdss",
.driver = {
.name = "omapdss",
},
};

Expand Down
2 changes: 1 addition & 1 deletion drivers/video/fbdev/omap2/omapfb/dss/dispc.c
Original file line number Diff line number Diff line change
Expand Up @@ -4072,7 +4072,7 @@ static const struct of_device_id dispc_of_match[] = {

static struct platform_driver omap_dispchw_driver = {
.probe = dispc_probe,
.remove_new = dispc_remove,
.remove = dispc_remove,
.driver = {
.name = "omapdss_dispc",
.pm = &dispc_pm_ops,
Expand Down
4 changes: 2 additions & 2 deletions drivers/video/fbdev/omap2/omapfb/dss/dpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -817,8 +817,8 @@ static void dpi_remove(struct platform_device *pdev)

static struct platform_driver omap_dpi_driver = {
.probe = dpi_probe,
.remove_new = dpi_remove,
.driver = {
.remove = dpi_remove,
.driver = {
.name = "omapdss_dpi",
.suppress_bind_attrs = true,
},
Expand Down
Loading

0 comments on commit 9066258

Please sign in to comment.