37
37
38
38
#define CFAG12864BFB_NAME "cfag12864bfb"
39
39
40
- static struct fb_fix_screeninfo cfag12864bfb_fix __initdata = {
40
+ static struct fb_fix_screeninfo cfag12864bfb_fix __devinitdata = {
41
41
.id = "cfag12864b" ,
42
42
.type = FB_TYPE_PACKED_PIXELS ,
43
43
.visual = FB_VISUAL_MONO10 ,
@@ -48,7 +48,7 @@ static struct fb_fix_screeninfo cfag12864bfb_fix __initdata = {
48
48
.accel = FB_ACCEL_NONE ,
49
49
};
50
50
51
- static struct fb_var_screeninfo cfag12864bfb_var __initdata = {
51
+ static struct fb_var_screeninfo cfag12864bfb_var __devinitdata = {
52
52
.xres = CFAG12864B_WIDTH ,
53
53
.yres = CFAG12864B_HEIGHT ,
54
54
.xres_virtual = CFAG12864B_WIDTH ,
@@ -114,7 +114,7 @@ static int __devinit cfag12864bfb_probe(struct platform_device *device)
114
114
return ret ;
115
115
}
116
116
117
- static int cfag12864bfb_remove (struct platform_device * device )
117
+ static int __devexit cfag12864bfb_remove (struct platform_device * device )
118
118
{
119
119
struct fb_info * info = platform_get_drvdata (device );
120
120
@@ -128,7 +128,7 @@ static int cfag12864bfb_remove(struct platform_device *device)
128
128
129
129
static struct platform_driver cfag12864bfb_driver = {
130
130
.probe = cfag12864bfb_probe ,
131
- .remove = cfag12864bfb_remove ,
131
+ .remove = __devexit_p ( cfag12864bfb_remove ) ,
132
132
.driver = {
133
133
.name = CFAG12864BFB_NAME ,
134
134
},
0 commit comments