forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'fbdev-for-6.7-rc1' of git://git.kernel.org/pub/scm/linux/k…
…ernel/git/deller/linux-fbdev Pull fbdev fixes and cleanups from Helge Deller: - fix double free and resource leaks in imsttfb - lots of remove callback cleanups and section mismatch fixes in omapfb, amifb and atmel_lcdfb - error code fix and memparse simplification in omapfb * tag 'fbdev-for-6.7-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/linux-fbdev: (31 commits) fbdev: fsl-diu-fb: mark wr_reg_wa() static fbdev: amifb: Convert to platform remove callback returning void fbdev: amifb: Mark driver struct with __refdata to prevent section mismatch warning fbdev: hyperv_fb: fix uninitialized local variable use fbdev: omapfb/tpd12s015: Convert to platform remove callback returning void fbdev: omapfb/tfp410: Convert to platform remove callback returning void fbdev: omapfb/sharp-ls037v7dw01: Convert to platform remove callback returning void fbdev: omapfb/opa362: Convert to platform remove callback returning void fbdev: omapfb/hdmi: Convert to platform remove callback returning void fbdev: omapfb/dvi: Convert to platform remove callback returning void fbdev: omapfb/dsi-cm: Convert to platform remove callback returning void fbdev: omapfb/dpi: Convert to platform remove callback returning void fbdev: omapfb/analog-tv: Convert to platform remove callback returning void fbdev: atmel_lcdfb: Convert to platform remove callback returning void fbdev: omapfb/tpd12s015: Don't put .remove() in .exit.text and drop suppress_bind_attrs fbdev: omapfb/tfp410: Don't put .remove() in .exit.text and drop suppress_bind_attrs fbdev: omapfb/sharp-ls037v7dw01: Don't put .remove() in .exit.text and drop suppress_bind_attrs fbdev: omapfb/opa362: Don't put .remove() in .exit.text and drop suppress_bind_attrs fbdev: omapfb/hdmi: Don't put .remove() in .exit.text and drop suppress_bind_attrs fbdev: omapfb/dvi: Don't put .remove() in .exit.text and drop suppress_bind_attrs ...
- Loading branch information
Showing
18 changed files
with
70 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -220,7 +220,7 @@ static inline void atmel_lcdfb_power_control(struct atmel_lcdfb_info *sinfo, int | |
} | ||
} | ||
|
||
static const struct fb_fix_screeninfo atmel_lcdfb_fix __initconst = { | ||
static const struct fb_fix_screeninfo atmel_lcdfb_fix = { | ||
.type = FB_TYPE_PACKED_PIXELS, | ||
.visual = FB_VISUAL_TRUECOLOR, | ||
.xpanstep = 0, | ||
|
@@ -841,7 +841,7 @@ static void atmel_lcdfb_task(struct work_struct *work) | |
atmel_lcdfb_reset(sinfo); | ||
} | ||
|
||
static int __init atmel_lcdfb_init_fbinfo(struct atmel_lcdfb_info *sinfo) | ||
static int atmel_lcdfb_init_fbinfo(struct atmel_lcdfb_info *sinfo) | ||
{ | ||
struct fb_info *info = sinfo->info; | ||
int ret = 0; | ||
|
@@ -1017,7 +1017,7 @@ static int atmel_lcdfb_of_init(struct atmel_lcdfb_info *sinfo) | |
return ret; | ||
} | ||
|
||
static int __init atmel_lcdfb_probe(struct platform_device *pdev) | ||
static int atmel_lcdfb_probe(struct platform_device *pdev) | ||
{ | ||
struct device *dev = &pdev->dev; | ||
struct fb_info *info; | ||
|
@@ -1223,14 +1223,14 @@ static int __init atmel_lcdfb_probe(struct platform_device *pdev) | |
return ret; | ||
} | ||
|
||
static int __exit atmel_lcdfb_remove(struct platform_device *pdev) | ||
static void atmel_lcdfb_remove(struct platform_device *pdev) | ||
{ | ||
struct device *dev = &pdev->dev; | ||
struct fb_info *info = dev_get_drvdata(dev); | ||
struct atmel_lcdfb_info *sinfo; | ||
|
||
if (!info || !info->par) | ||
return 0; | ||
return; | ||
sinfo = info->par; | ||
|
||
cancel_work_sync(&sinfo->task); | ||
|
@@ -1252,8 +1252,6 @@ static int __exit atmel_lcdfb_remove(struct platform_device *pdev) | |
} | ||
|
||
framebuffer_release(info); | ||
|
||
return 0; | ||
} | ||
|
||
#ifdef CONFIG_PM | ||
|
@@ -1301,16 +1299,16 @@ static int atmel_lcdfb_resume(struct platform_device *pdev) | |
#endif | ||
|
||
static struct platform_driver atmel_lcdfb_driver = { | ||
.remove = __exit_p(atmel_lcdfb_remove), | ||
.probe = atmel_lcdfb_probe, | ||
.remove_new = atmel_lcdfb_remove, | ||
.suspend = atmel_lcdfb_suspend, | ||
.resume = atmel_lcdfb_resume, | ||
.driver = { | ||
.name = "atmel_lcdfb", | ||
.of_match_table = atmel_lcdfb_dt_ids, | ||
}, | ||
}; | ||
|
||
module_platform_driver_probe(atmel_lcdfb_driver, atmel_lcdfb_probe); | ||
module_platform_driver(atmel_lcdfb_driver); | ||
|
||
MODULE_DESCRIPTION("AT91 LCD Controller framebuffer driver"); | ||
MODULE_AUTHOR("Nicolas Ferre <[email protected]>"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.