aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/s3c-fb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/s3c-fb.c')
-rw-r--r--drivers/video/s3c-fb.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/drivers/video/s3c-fb.c b/drivers/video/s3c-fb.c
index 1a00ad241edd..9b57a235c9bc 100644
--- a/drivers/video/s3c-fb.c
+++ b/drivers/video/s3c-fb.c
@@ -1081,8 +1081,7 @@ static void s3c_fb_missing_pixclock(struct fb_videomode *mode)
1081 * 1081 *
1082 * Allocate memory for the given framebuffer. 1082 * Allocate memory for the given framebuffer.
1083 */ 1083 */
1084static int __devinit s3c_fb_alloc_memory(struct s3c_fb *sfb, 1084static int s3c_fb_alloc_memory(struct s3c_fb *sfb, struct s3c_fb_win *win)
1085 struct s3c_fb_win *win)
1086{ 1085{
1087 struct s3c_fb_pd_win *windata = win->windata; 1086 struct s3c_fb_pd_win *windata = win->windata;
1088 unsigned int real_size, virt_size, size; 1087 unsigned int real_size, virt_size, size;
@@ -1172,9 +1171,9 @@ static void s3c_fb_release_win(struct s3c_fb *sfb, struct s3c_fb_win *win)
1172 * Allocate and do the basic initialisation for one of the hardware's graphics 1171 * Allocate and do the basic initialisation for one of the hardware's graphics
1173 * windows. 1172 * windows.
1174 */ 1173 */
1175static int __devinit s3c_fb_probe_win(struct s3c_fb *sfb, unsigned int win_no, 1174static int s3c_fb_probe_win(struct s3c_fb *sfb, unsigned int win_no,
1176 struct s3c_fb_win_variant *variant, 1175 struct s3c_fb_win_variant *variant,
1177 struct s3c_fb_win **res) 1176 struct s3c_fb_win **res)
1178{ 1177{
1179 struct fb_var_screeninfo *var; 1178 struct fb_var_screeninfo *var;
1180 struct fb_videomode initmode; 1179 struct fb_videomode initmode;
@@ -1360,7 +1359,7 @@ static void s3c_fb_clear_win(struct s3c_fb *sfb, int win)
1360 } 1359 }
1361} 1360}
1362 1361
1363static int __devinit s3c_fb_probe(struct platform_device *pdev) 1362static int s3c_fb_probe(struct platform_device *pdev)
1364{ 1363{
1365 const struct platform_device_id *platid; 1364 const struct platform_device_id *platid;
1366 struct s3c_fb_driverdata *fbdrv; 1365 struct s3c_fb_driverdata *fbdrv;
@@ -1521,7 +1520,7 @@ err_bus_clk:
1521 * Shutdown and then release all the resources that the driver allocated 1520 * Shutdown and then release all the resources that the driver allocated
1522 * on initialisation. 1521 * on initialisation.
1523 */ 1522 */
1524static int __devexit s3c_fb_remove(struct platform_device *pdev) 1523static int s3c_fb_remove(struct platform_device *pdev)
1525{ 1524{
1526 struct s3c_fb *sfb = platform_get_drvdata(pdev); 1525 struct s3c_fb *sfb = platform_get_drvdata(pdev);
1527 int win; 1526 int win;
@@ -2035,7 +2034,7 @@ static const struct dev_pm_ops s3cfb_pm_ops = {
2035 2034
2036static struct platform_driver s3c_fb_driver = { 2035static struct platform_driver s3c_fb_driver = {
2037 .probe = s3c_fb_probe, 2036 .probe = s3c_fb_probe,
2038 .remove = __devexit_p(s3c_fb_remove), 2037 .remove = s3c_fb_remove,
2039 .id_table = s3c_fb_driver_ids, 2038 .id_table = s3c_fb_driver_ids,
2040 .driver = { 2039 .driver = {
2041 .name = "s3c-fb", 2040 .name = "s3c-fb",