Skip to content

Commit bf87eae

Browse files
Henrik Kretzschmartorvalds
authored andcommitted
auxdisplay: section cleanup in cfag12864bfb driver
This fixes a two section mismatches and makes remove() __devexit. Signed-off-by: Henrik Kretzschmar <[email protected]> Cc: Miguel Ojeda Sandonis <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent a42dcb8 commit bf87eae

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/auxdisplay/cfag12864bfb.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
#define CFAG12864BFB_NAME "cfag12864bfb"
3939

40-
static struct fb_fix_screeninfo cfag12864bfb_fix __initdata = {
40+
static struct fb_fix_screeninfo cfag12864bfb_fix __devinitdata = {
4141
.id = "cfag12864b",
4242
.type = FB_TYPE_PACKED_PIXELS,
4343
.visual = FB_VISUAL_MONO10,
@@ -48,7 +48,7 @@ static struct fb_fix_screeninfo cfag12864bfb_fix __initdata = {
4848
.accel = FB_ACCEL_NONE,
4949
};
5050

51-
static struct fb_var_screeninfo cfag12864bfb_var __initdata = {
51+
static struct fb_var_screeninfo cfag12864bfb_var __devinitdata = {
5252
.xres = CFAG12864B_WIDTH,
5353
.yres = CFAG12864B_HEIGHT,
5454
.xres_virtual = CFAG12864B_WIDTH,
@@ -114,7 +114,7 @@ static int __devinit cfag12864bfb_probe(struct platform_device *device)
114114
return ret;
115115
}
116116

117-
static int cfag12864bfb_remove(struct platform_device *device)
117+
static int __devexit cfag12864bfb_remove(struct platform_device *device)
118118
{
119119
struct fb_info *info = platform_get_drvdata(device);
120120

@@ -128,7 +128,7 @@ static int cfag12864bfb_remove(struct platform_device *device)
128128

129129
static struct platform_driver cfag12864bfb_driver = {
130130
.probe = cfag12864bfb_probe,
131-
.remove = cfag12864bfb_remove,
131+
.remove = __devexit_p(cfag12864bfb_remove),
132132
.driver = {
133133
.name = CFAG12864BFB_NAME,
134134
},

0 commit comments

Comments
 (0)