Skip to content

Commit

Permalink
auxdisplay: section cleanup in cfag12864bfb driver
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Henrik Kretzschmar authored and torvalds committed May 25, 2010
1 parent a42dcb8 commit bf87eae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/auxdisplay/cfag12864bfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

#define CFAG12864BFB_NAME "cfag12864bfb"

static struct fb_fix_screeninfo cfag12864bfb_fix __initdata = {
static struct fb_fix_screeninfo cfag12864bfb_fix __devinitdata = {
.id = "cfag12864b",
.type = FB_TYPE_PACKED_PIXELS,
.visual = FB_VISUAL_MONO10,
Expand All @@ -48,7 +48,7 @@ static struct fb_fix_screeninfo cfag12864bfb_fix __initdata = {
.accel = FB_ACCEL_NONE,
};

static struct fb_var_screeninfo cfag12864bfb_var __initdata = {
static struct fb_var_screeninfo cfag12864bfb_var __devinitdata = {
.xres = CFAG12864B_WIDTH,
.yres = CFAG12864B_HEIGHT,
.xres_virtual = CFAG12864B_WIDTH,
Expand Down Expand Up @@ -114,7 +114,7 @@ static int __devinit cfag12864bfb_probe(struct platform_device *device)
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);

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

static struct platform_driver cfag12864bfb_driver = {
.probe = cfag12864bfb_probe,
.remove = cfag12864bfb_remove,
.remove = __devexit_p(cfag12864bfb_remove),
.driver = {
.name = CFAG12864BFB_NAME,
},
Expand Down

0 comments on commit bf87eae

Please sign in to comment.