aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/pxafb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/pxafb.c')
-rw-r--r--drivers/video/pxafb.c33
1 files changed, 16 insertions, 17 deletions
diff --git a/drivers/video/pxafb.c b/drivers/video/pxafb.c
index 4fa2ad43fd97..580f80cc586f 100644
--- a/drivers/video/pxafb.c
+++ b/drivers/video/pxafb.c
@@ -869,8 +869,8 @@ static struct fb_ops overlay_fb_ops = {
869 .fb_set_par = overlayfb_set_par, 869 .fb_set_par = overlayfb_set_par,
870}; 870};
871 871
872static void __devinit init_pxafb_overlay(struct pxafb_info *fbi, 872static void init_pxafb_overlay(struct pxafb_info *fbi, struct pxafb_layer *ofb,
873 struct pxafb_layer *ofb, int id) 873 int id)
874{ 874{
875 sprintf(ofb->fb.fix.id, "overlay%d", id + 1); 875 sprintf(ofb->fb.fix.id, "overlay%d", id + 1);
876 876
@@ -903,8 +903,8 @@ static inline int pxafb_overlay_supported(void)
903 return 0; 903 return 0;
904} 904}
905 905
906static int __devinit pxafb_overlay_map_video_memory(struct pxafb_info *pxafb, 906static int pxafb_overlay_map_video_memory(struct pxafb_info *pxafb,
907 struct pxafb_layer *ofb) 907 struct pxafb_layer *ofb)
908{ 908{
909 /* We assume that user will use at most video_mem_size for overlay fb, 909 /* We assume that user will use at most video_mem_size for overlay fb,
910 * anyway, it's useless to use 16bpp main plane and 24bpp overlay 910 * anyway, it's useless to use 16bpp main plane and 24bpp overlay
@@ -927,7 +927,7 @@ static int __devinit pxafb_overlay_map_video_memory(struct pxafb_info *pxafb,
927 return 0; 927 return 0;
928} 928}
929 929
930static void __devinit pxafb_overlay_init(struct pxafb_info *fbi) 930static void pxafb_overlay_init(struct pxafb_info *fbi)
931{ 931{
932 int i, ret; 932 int i, ret;
933 933
@@ -959,7 +959,7 @@ static void __devinit pxafb_overlay_init(struct pxafb_info *fbi)
959 pr_info("PXA Overlay driver loaded successfully!\n"); 959 pr_info("PXA Overlay driver loaded successfully!\n");
960} 960}
961 961
962static void __devexit pxafb_overlay_exit(struct pxafb_info *fbi) 962static void pxafb_overlay_exit(struct pxafb_info *fbi)
963{ 963{
964 int i; 964 int i;
965 965
@@ -1706,7 +1706,7 @@ static const struct dev_pm_ops pxafb_pm_ops = {
1706}; 1706};
1707#endif 1707#endif
1708 1708
1709static int __devinit pxafb_init_video_memory(struct pxafb_info *fbi) 1709static int pxafb_init_video_memory(struct pxafb_info *fbi)
1710{ 1710{
1711 int size = PAGE_ALIGN(fbi->video_mem_size); 1711 int size = PAGE_ALIGN(fbi->video_mem_size);
1712 1712
@@ -1789,7 +1789,7 @@ decode_mode:
1789 fbi->video_mem_size = video_mem_size; 1789 fbi->video_mem_size = video_mem_size;
1790} 1790}
1791 1791
1792static struct pxafb_info * __devinit pxafb_init_fbinfo(struct device *dev) 1792static struct pxafb_info *pxafb_init_fbinfo(struct device *dev)
1793{ 1793{
1794 struct pxafb_info *fbi; 1794 struct pxafb_info *fbi;
1795 void *addr; 1795 void *addr;
@@ -1853,7 +1853,7 @@ static struct pxafb_info * __devinit pxafb_init_fbinfo(struct device *dev)
1853} 1853}
1854 1854
1855#ifdef CONFIG_FB_PXA_PARAMETERS 1855#ifdef CONFIG_FB_PXA_PARAMETERS
1856static int __devinit parse_opt_mode(struct device *dev, const char *this_opt) 1856static int parse_opt_mode(struct device *dev, const char *this_opt)
1857{ 1857{
1858 struct pxafb_mach_info *inf = dev->platform_data; 1858 struct pxafb_mach_info *inf = dev->platform_data;
1859 1859
@@ -1912,7 +1912,7 @@ done:
1912 return 0; 1912 return 0;
1913} 1913}
1914 1914
1915static int __devinit parse_opt(struct device *dev, char *this_opt) 1915static int parse_opt(struct device *dev, char *this_opt)
1916{ 1916{
1917 struct pxafb_mach_info *inf = dev->platform_data; 1917 struct pxafb_mach_info *inf = dev->platform_data;
1918 struct pxafb_mode_info *mode = &inf->modes[0]; 1918 struct pxafb_mode_info *mode = &inf->modes[0];
@@ -2012,7 +2012,7 @@ static int __devinit parse_opt(struct device *dev, char *this_opt)
2012 return 0; 2012 return 0;
2013} 2013}
2014 2014
2015static int __devinit pxafb_parse_options(struct device *dev, char *options) 2015static int pxafb_parse_options(struct device *dev, char *options)
2016{ 2016{
2017 char *this_opt; 2017 char *this_opt;
2018 int ret; 2018 int ret;
@@ -2031,7 +2031,7 @@ static int __devinit pxafb_parse_options(struct device *dev, char *options)
2031 return 0; 2031 return 0;
2032} 2032}
2033 2033
2034static char g_options[256] __devinitdata = ""; 2034static char g_options[256] = "";
2035 2035
2036#ifndef MODULE 2036#ifndef MODULE
2037static int __init pxafb_setup_options(void) 2037static int __init pxafb_setup_options(void)
@@ -2061,8 +2061,7 @@ MODULE_PARM_DESC(options, "LCD parameters (see Documentation/fb/pxafb.txt)");
2061#ifdef DEBUG_VAR 2061#ifdef DEBUG_VAR
2062/* Check for various illegal bit-combinations. Currently only 2062/* Check for various illegal bit-combinations. Currently only
2063 * a warning is given. */ 2063 * a warning is given. */
2064static void __devinit pxafb_check_options(struct device *dev, 2064static void pxafb_check_options(struct device *dev, struct pxafb_mach_info *inf)
2065 struct pxafb_mach_info *inf)
2066{ 2065{
2067 if (inf->lcd_conn) 2066 if (inf->lcd_conn)
2068 return; 2067 return;
@@ -2094,7 +2093,7 @@ static void __devinit pxafb_check_options(struct device *dev,
2094#define pxafb_check_options(...) do {} while (0) 2093#define pxafb_check_options(...) do {} while (0)
2095#endif 2094#endif
2096 2095
2097static int __devinit pxafb_probe(struct platform_device *dev) 2096static int pxafb_probe(struct platform_device *dev)
2098{ 2097{
2099 struct pxafb_info *fbi; 2098 struct pxafb_info *fbi;
2100 struct pxafb_mach_info *inf; 2099 struct pxafb_mach_info *inf;
@@ -2263,7 +2262,7 @@ failed:
2263 return ret; 2262 return ret;
2264} 2263}
2265 2264
2266static int __devexit pxafb_remove(struct platform_device *dev) 2265static int pxafb_remove(struct platform_device *dev)
2267{ 2266{
2268 struct pxafb_info *fbi = platform_get_drvdata(dev); 2267 struct pxafb_info *fbi = platform_get_drvdata(dev);
2269 struct resource *r; 2268 struct resource *r;
@@ -2304,7 +2303,7 @@ static int __devexit pxafb_remove(struct platform_device *dev)
2304 2303
2305static struct platform_driver pxafb_driver = { 2304static struct platform_driver pxafb_driver = {
2306 .probe = pxafb_probe, 2305 .probe = pxafb_probe,
2307 .remove = __devexit_p(pxafb_remove), 2306 .remove = pxafb_remove,
2308 .driver = { 2307 .driver = {
2309 .owner = THIS_MODULE, 2308 .owner = THIS_MODULE,
2310 .name = "pxa2xx-fb", 2309 .name = "pxa2xx-fb",