Commit bf87eae9 authored by Henrik Kretzschmar's avatar Henrik Kretzschmar Committed by Linus Torvalds

auxdisplay: section cleanup in cfag12864bfb driver

This fixes a two section mismatches and makes remove() __devexit.
Signed-off-by: default avatarHenrik Kretzschmar <henne@nachtwindheim.de>
Cc: Miguel Ojeda Sandonis <miguel.ojeda.sandonis@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent a42dcb88
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
#define CFAG12864BFB_NAME "cfag12864bfb" #define CFAG12864BFB_NAME "cfag12864bfb"
static struct fb_fix_screeninfo cfag12864bfb_fix __initdata = { static struct fb_fix_screeninfo cfag12864bfb_fix __devinitdata = {
.id = "cfag12864b", .id = "cfag12864b",
.type = FB_TYPE_PACKED_PIXELS, .type = FB_TYPE_PACKED_PIXELS,
.visual = FB_VISUAL_MONO10, .visual = FB_VISUAL_MONO10,
...@@ -48,7 +48,7 @@ static struct fb_fix_screeninfo cfag12864bfb_fix __initdata = { ...@@ -48,7 +48,7 @@ static struct fb_fix_screeninfo cfag12864bfb_fix __initdata = {
.accel = FB_ACCEL_NONE, .accel = FB_ACCEL_NONE,
}; };
static struct fb_var_screeninfo cfag12864bfb_var __initdata = { static struct fb_var_screeninfo cfag12864bfb_var __devinitdata = {
.xres = CFAG12864B_WIDTH, .xres = CFAG12864B_WIDTH,
.yres = CFAG12864B_HEIGHT, .yres = CFAG12864B_HEIGHT,
.xres_virtual = CFAG12864B_WIDTH, .xres_virtual = CFAG12864B_WIDTH,
...@@ -114,7 +114,7 @@ static int __devinit cfag12864bfb_probe(struct platform_device *device) ...@@ -114,7 +114,7 @@ static int __devinit cfag12864bfb_probe(struct platform_device *device)
return ret; return ret;
} }
static int cfag12864bfb_remove(struct platform_device *device) static int __devexit cfag12864bfb_remove(struct platform_device *device)
{ {
struct fb_info *info = platform_get_drvdata(device); struct fb_info *info = platform_get_drvdata(device);
...@@ -128,7 +128,7 @@ static int cfag12864bfb_remove(struct platform_device *device) ...@@ -128,7 +128,7 @@ static int cfag12864bfb_remove(struct platform_device *device)
static struct platform_driver cfag12864bfb_driver = { static struct platform_driver cfag12864bfb_driver = {
.probe = cfag12864bfb_probe, .probe = cfag12864bfb_probe,
.remove = cfag12864bfb_remove, .remove = __devexit_p(cfag12864bfb_remove),
.driver = { .driver = {
.name = CFAG12864BFB_NAME, .name = CFAG12864BFB_NAME,
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment