Skip to content

Commit

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

Pull fbdev updates from Helge Deller:
 "Nothing really exiting in here.

  The majority of lines changed is due to Uwe's preparation patches to
  change the return value of the .remove() callback to void.

  Summary:

   - vt_buffer.h: Fix build on alpha (Randy Dunlap)

   - mmp: Clock handling fix (Christophe JAILLET)

   - 68328fb, ps3fb, vfb: Init .owner field of struct fb_ops (Thomas
     Zimmermann)

   - fbdev: cg14: Convert to platform remove callback returning void

   - Preparation patches to convert drivers to return void in .remove()
     callback (Uwe Kleine-König)

   - Drop Paul Mackerras as rage128 maintainer"

* tag 'fbdev-for-6.4-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/linux-fbdev: (51 commits)
  MAINTAINERS: Remove rage128 framebuffer driver maintainer
  fbdev: vfb: Init owner field of struct fb_ops
  fbdev: ps3fb: Init owner field of struct fb_ops
  fbdev: 68328fb: Init owner field of struct fb_ops
  fbdev: mmp: Fix deferred clk handling in mmphw_probe()
  linux/vt_buffer.h: allow either builtin or modular for macros
  fbdev: xilinxfb: Convert to platform remove callback returning void
  fbdev: wmt_ge_rops: Convert to platform remove callback returning void
  fbdev: wm8505fb: Convert to platform remove callback returning void
  fbdev: vt8500lcdfb: Convert to platform remove callback returning void
  fbdev: via: Convert to platform remove callback returning void
  fbdev: vga16fb: Convert to platform remove callback returning void
  fbdev: vfb: Convert to platform remove callback returning void
  fbdev: vesafb: Convert to platform remove callback returning void
  fbdev: uvesafb: Convert to platform remove callback returning void
  fbdev: tcx: Convert to platform remove callback returning void
  fbdev: sm501fb: Convert to platform remove callback returning void
  fbdev: simplefb: Convert to platform remove callback returning void
  fbdev: sh_mobile_lcdcfb: Convert to platform remove callback returning void
  fbdev: sh7760fb: Convert to platform remove callback returning void
  ...
  • Loading branch information
Linus Torvalds committed Apr 27, 2023
2 parents 89555ee + 60ed3cd commit 725a345
Show file tree
Hide file tree
Showing 61 changed files with 121 additions and 212 deletions.
3 changes: 1 addition & 2 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -17571,9 +17571,8 @@ F: drivers/block/rbd.c
F: drivers/block/rbd_types.h

RAGE128 FRAMEBUFFER DISPLAY DRIVER
M: Paul Mackerras <paulus@samba.org>
L: linux-fbdev@vger.kernel.org
S: Maintained
S: Orphan
F: drivers/video/fbdev/aty/aty128fb.c

RAINSHADOW-CEC DRIVER
Expand Down
1 change: 1 addition & 0 deletions drivers/video/fbdev/68328fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ static int mc68x328fb_pan_display(struct fb_var_screeninfo *var,
static int mc68x328fb_mmap(struct fb_info *info, struct vm_area_struct *vma);

static const struct fb_ops mc68x328fb_ops = {
.owner = THIS_MODULE,
.fb_check_var = mc68x328fb_check_var,
.fb_set_par = mc68x328fb_set_par,
.fb_setcolreg = mc68x328fb_setcolreg,
Expand Down
6 changes: 2 additions & 4 deletions drivers/video/fbdev/cg14.c
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ static int cg14_probe(struct platform_device *op)
return err;
}

static int cg14_remove(struct platform_device *op)
static void cg14_remove(struct platform_device *op)
{
struct fb_info *info = dev_get_drvdata(&op->dev);
struct cg14_par *par = info->par;
Expand All @@ -580,8 +580,6 @@ static int cg14_remove(struct platform_device *op)
cg14_unmap_regs(op, info, par);

framebuffer_release(info);

return 0;
}

static const struct of_device_id cg14_match[] = {
Expand All @@ -598,7 +596,7 @@ static struct platform_driver cg14_driver = {
.of_match_table = cg14_match,
},
.probe = cg14_probe,
.remove = cg14_remove,
.remove_new = cg14_remove,
};

static int __init cg14_init(void)
Expand Down
6 changes: 2 additions & 4 deletions drivers/video/fbdev/cg3.c
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ static int cg3_probe(struct platform_device *op)
return err;
}

static int cg3_remove(struct platform_device *op)
static void cg3_remove(struct platform_device *op)
{
struct fb_info *info = dev_get_drvdata(&op->dev);
struct cg3_par *par = info->par;
Expand All @@ -446,8 +446,6 @@ static int cg3_remove(struct platform_device *op)
of_iounmap(&op->resource[0], info->screen_base, info->fix.smem_len);

framebuffer_release(info);

return 0;
}

static const struct of_device_id cg3_match[] = {
Expand All @@ -467,7 +465,7 @@ static struct platform_driver cg3_driver = {
.of_match_table = cg3_match,
},
.probe = cg3_probe,
.remove = cg3_remove,
.remove_new = cg3_remove,
};

static int __init cg3_init(void)
Expand Down
6 changes: 2 additions & 4 deletions drivers/video/fbdev/cg6.c
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,7 @@ static int cg6_probe(struct platform_device *op)
return err;
}

static int cg6_remove(struct platform_device *op)
static void cg6_remove(struct platform_device *op)
{
struct fb_info *info = dev_get_drvdata(&op->dev);
struct cg6_par *par = info->par;
Expand All @@ -839,8 +839,6 @@ static int cg6_remove(struct platform_device *op)
cg6_unmap_regs(op, info, par);

framebuffer_release(info);

return 0;
}

static const struct of_device_id cg6_match[] = {
Expand All @@ -860,7 +858,7 @@ static struct platform_driver cg6_driver = {
.of_match_table = cg6_match,
},
.probe = cg6_probe,
.remove = cg6_remove,
.remove_new = cg6_remove,
};

static int __init cg6_init(void)
Expand Down
6 changes: 2 additions & 4 deletions drivers/video/fbdev/clps711x-fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ static int clps711x_fb_probe(struct platform_device *pdev)
return ret;
}

static int clps711x_fb_remove(struct platform_device *pdev)
static void clps711x_fb_remove(struct platform_device *pdev)
{
struct fb_info *info = platform_get_drvdata(pdev);
struct clps711x_fb_info *cfb = info->par;
Expand All @@ -360,8 +360,6 @@ static int clps711x_fb_remove(struct platform_device *pdev)
unregister_framebuffer(info);
fb_dealloc_cmap(&info->cmap);
framebuffer_release(info);

return 0;
}

static const struct of_device_id clps711x_fb_dt_ids[] = {
Expand All @@ -376,7 +374,7 @@ static struct platform_driver clps711x_fb_driver = {
.of_match_table = clps711x_fb_dt_ids,
},
.probe = clps711x_fb_probe,
.remove = clps711x_fb_remove,
.remove_new = clps711x_fb_remove,
};
module_platform_driver(clps711x_fb_driver);

Expand Down
6 changes: 2 additions & 4 deletions drivers/video/fbdev/cobalt_lcdfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ static int cobalt_lcdfb_probe(struct platform_device *dev)
return 0;
}

static int cobalt_lcdfb_remove(struct platform_device *dev)
static void cobalt_lcdfb_remove(struct platform_device *dev)
{
struct fb_info *info;

Expand All @@ -333,13 +333,11 @@ static int cobalt_lcdfb_remove(struct platform_device *dev)
unregister_framebuffer(info);
framebuffer_release(info);
}

return 0;
}

static struct platform_driver cobalt_lcdfb_driver = {
.probe = cobalt_lcdfb_probe,
.remove = cobalt_lcdfb_remove,
.remove_new = cobalt_lcdfb_remove,
.driver = {
.name = "cobalt-lcd",
},
Expand Down
6 changes: 2 additions & 4 deletions drivers/video/fbdev/da8xx-fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1064,7 +1064,7 @@ static void lcd_da8xx_cpufreq_deregister(struct da8xx_fb_par *par)
}
#endif

static int fb_remove(struct platform_device *dev)
static void fb_remove(struct platform_device *dev)
{
struct fb_info *info = platform_get_drvdata(dev);
struct da8xx_fb_par *par = info->par;
Expand All @@ -1091,8 +1091,6 @@ static int fb_remove(struct platform_device *dev)
pm_runtime_put_sync(&dev->dev);
pm_runtime_disable(&dev->dev);
framebuffer_release(info);

return 0;
}

/*
Expand Down Expand Up @@ -1657,7 +1655,7 @@ static SIMPLE_DEV_PM_OPS(fb_pm_ops, fb_suspend, fb_resume);

static struct platform_driver da8xx_fb_driver = {
.probe = fb_probe,
.remove = fb_remove,
.remove_new = fb_remove,
.driver = {
.name = DRIVER_NAME,
.pm = &fb_pm_ops,
Expand Down
6 changes: 2 additions & 4 deletions drivers/video/fbdev/efifb.c
Original file line number Diff line number Diff line change
Expand Up @@ -621,23 +621,21 @@ static int efifb_probe(struct platform_device *dev)
return err;
}

static int efifb_remove(struct platform_device *pdev)
static void efifb_remove(struct platform_device *pdev)
{
struct fb_info *info = platform_get_drvdata(pdev);

/* efifb_destroy takes care of info cleanup */
unregister_framebuffer(info);
sysfs_remove_groups(&pdev->dev.kobj, efifb_groups);

return 0;
}

static struct platform_driver efifb_driver = {
.driver = {
.name = "efi-framebuffer",
},
.probe = efifb_probe,
.remove = efifb_remove,
.remove_new = efifb_remove,
};

builtin_platform_driver(efifb_driver);
Expand Down
6 changes: 2 additions & 4 deletions drivers/video/fbdev/ep93xx-fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ static int ep93xxfb_probe(struct platform_device *pdev)
return err;
}

static int ep93xxfb_remove(struct platform_device *pdev)
static void ep93xxfb_remove(struct platform_device *pdev)
{
struct fb_info *info = platform_get_drvdata(pdev);
struct ep93xx_fbi *fbi = info->par;
Expand All @@ -587,13 +587,11 @@ static int ep93xxfb_remove(struct platform_device *pdev)
fbi->mach_info->teardown(pdev);

kfree(info);

return 0;
}

static struct platform_driver ep93xxfb_driver = {
.probe = ep93xxfb_probe,
.remove = ep93xxfb_remove,
.remove_new = ep93xxfb_remove,
.driver = {
.name = "ep93xx-fb",
},
Expand Down
6 changes: 2 additions & 4 deletions drivers/video/fbdev/ffb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1023,7 +1023,7 @@ static int ffb_probe(struct platform_device *op)
return err;
}

static int ffb_remove(struct platform_device *op)
static void ffb_remove(struct platform_device *op)
{
struct fb_info *info = dev_get_drvdata(&op->dev);
struct ffb_par *par = info->par;
Expand All @@ -1035,8 +1035,6 @@ static int ffb_remove(struct platform_device *op)
of_iounmap(&op->resource[1], par->dac, sizeof(struct ffb_dac));

framebuffer_release(info);

return 0;
}

static const struct of_device_id ffb_match[] = {
Expand All @@ -1056,7 +1054,7 @@ static struct platform_driver ffb_driver = {
.of_match_table = ffb_match,
},
.probe = ffb_probe,
.remove = ffb_remove,
.remove_new = ffb_remove,
};

static int __init ffb_init(void)
Expand Down
6 changes: 2 additions & 4 deletions drivers/video/fbdev/fsl-diu-fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1823,7 +1823,7 @@ static int fsl_diu_probe(struct platform_device *pdev)
return ret;
}

static int fsl_diu_remove(struct platform_device *pdev)
static void fsl_diu_remove(struct platform_device *pdev)
{
struct fsl_diu_data *data;
int i;
Expand All @@ -1837,8 +1837,6 @@ static int fsl_diu_remove(struct platform_device *pdev)
uninstall_fb(&data->fsl_diu_info[i]);

iounmap(data->diu_reg);

return 0;
}

#ifndef MODULE
Expand Down Expand Up @@ -1885,7 +1883,7 @@ static struct platform_driver fsl_diu_driver = {
.of_match_table = fsl_diu_match,
},
.probe = fsl_diu_probe,
.remove = fsl_diu_remove,
.remove_new = fsl_diu_remove,
.suspend = fsl_diu_suspend,
.resume = fsl_diu_resume,
};
Expand Down
6 changes: 2 additions & 4 deletions drivers/video/fbdev/gbefb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1233,7 +1233,7 @@ static int gbefb_probe(struct platform_device *p_dev)
return ret;
}

static int gbefb_remove(struct platform_device* p_dev)
static void gbefb_remove(struct platform_device* p_dev)
{
struct fb_info *info = platform_get_drvdata(p_dev);
struct gbefb_par *par = info->par;
Expand All @@ -1243,13 +1243,11 @@ static int gbefb_remove(struct platform_device* p_dev)
arch_phys_wc_del(par->wc_cookie);
release_mem_region(GBE_BASE, sizeof(struct sgi_gbe));
framebuffer_release(info);

return 0;
}

static struct platform_driver gbefb_driver = {
.probe = gbefb_probe,
.remove = gbefb_remove,
.remove_new = gbefb_remove,
.driver = {
.name = "gbefb",
.dev_groups = gbefb_groups,
Expand Down
5 changes: 2 additions & 3 deletions drivers/video/fbdev/goldfishfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ static int goldfish_fb_probe(struct platform_device *pdev)
return ret;
}

static int goldfish_fb_remove(struct platform_device *pdev)
static void goldfish_fb_remove(struct platform_device *pdev)
{
size_t framesize;
struct goldfish_fb *fb = platform_get_drvdata(pdev);
Expand All @@ -296,7 +296,6 @@ static int goldfish_fb_remove(struct platform_device *pdev)
fb->fb.fix.smem_start);
iounmap(fb->reg_base);
kfree(fb);
return 0;
}

static const struct of_device_id goldfish_fb_of_match[] = {
Expand All @@ -315,7 +314,7 @@ MODULE_DEVICE_TABLE(acpi, goldfish_fb_acpi_match);

static struct platform_driver goldfish_fb_driver = {
.probe = goldfish_fb_probe,
.remove = goldfish_fb_remove,
.remove_new = goldfish_fb_remove,
.driver = {
.name = "goldfish_fb",
.of_match_table = goldfish_fb_of_match,
Expand Down
6 changes: 2 additions & 4 deletions drivers/video/fbdev/grvga.c
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,7 @@ static int grvga_probe(struct platform_device *dev)
return retval;
}

static int grvga_remove(struct platform_device *device)
static void grvga_remove(struct platform_device *device)
{
struct fb_info *info = dev_get_drvdata(&device->dev);
struct grvga_par *par;
Expand All @@ -524,8 +524,6 @@ static int grvga_remove(struct platform_device *device)

framebuffer_release(info);
}

return 0;
}

static struct of_device_id svgactrl_of_match[] = {
Expand All @@ -545,7 +543,7 @@ static struct platform_driver grvga_driver = {
.of_match_table = svgactrl_of_match,
},
.probe = grvga_probe,
.remove = grvga_remove,
.remove_new = grvga_remove,
};

module_platform_driver(grvga_driver);
Expand Down
5 changes: 2 additions & 3 deletions drivers/video/fbdev/hecubafb.c
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ static int hecubafb_probe(struct platform_device *dev)
return retval;
}

static int hecubafb_remove(struct platform_device *dev)
static void hecubafb_remove(struct platform_device *dev)
{
struct fb_info *info = platform_get_drvdata(dev);

Expand All @@ -293,12 +293,11 @@ static int hecubafb_remove(struct platform_device *dev)
module_put(par->board->owner);
framebuffer_release(info);
}
return 0;
}

static struct platform_driver hecubafb_driver = {
.probe = hecubafb_probe,
.remove = hecubafb_remove,
.remove_new = hecubafb_remove,
.driver = {
.name = "hecubafb",
},
Expand Down
Loading

0 comments on commit 725a345

Please sign in to comment.