aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/ssd1307fb.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-12-21 16:07:39 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-01-03 18:57:01 -0500
commit48c68c4f1b542444f175a9e136febcecf3e704d8 (patch)
treed28f4f3b42643990c2908d27e9caf120f6234b73 /drivers/video/ssd1307fb.c
parent8590dbc79a0ff5d7ab16b2b1743684c241ae3c65 (diff)
Drivers: video: remove __dev* attributes.
CONFIG_HOTPLUG is going away as an option. As a result, the __dev* markings need to be removed. This change removes the use of __devinit, __devexit_p, __devinitdata, __devinitconst, and __devexit from these drivers. Based on patches originally written by Bill Pemberton, but redone by me in order to handle some of the coding style issues better, by hand. Cc: Bill Pemberton <wfp5p@virginia.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/video/ssd1307fb.c')
-rw-r--r--drivers/video/ssd1307fb.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/video/ssd1307fb.c b/drivers/video/ssd1307fb.c
index 6101f5c2f62f..4d99dd7a6831 100644
--- a/drivers/video/ssd1307fb.c
+++ b/drivers/video/ssd1307fb.c
@@ -36,7 +36,7 @@ struct ssd1307fb_par {
36 int reset; 36 int reset;
37}; 37};
38 38
39static struct fb_fix_screeninfo ssd1307fb_fix __devinitdata = { 39static struct fb_fix_screeninfo ssd1307fb_fix = {
40 .id = "Solomon SSD1307", 40 .id = "Solomon SSD1307",
41 .type = FB_TYPE_PACKED_PIXELS, 41 .type = FB_TYPE_PACKED_PIXELS,
42 .visual = FB_VISUAL_MONO10, 42 .visual = FB_VISUAL_MONO10,
@@ -47,7 +47,7 @@ static struct fb_fix_screeninfo ssd1307fb_fix __devinitdata = {
47 .accel = FB_ACCEL_NONE, 47 .accel = FB_ACCEL_NONE,
48}; 48};
49 49
50static struct fb_var_screeninfo ssd1307fb_var __devinitdata = { 50static struct fb_var_screeninfo ssd1307fb_var = {
51 .xres = SSD1307FB_WIDTH, 51 .xres = SSD1307FB_WIDTH,
52 .yres = SSD1307FB_HEIGHT, 52 .yres = SSD1307FB_HEIGHT,
53 .xres_virtual = SSD1307FB_WIDTH, 53 .xres_virtual = SSD1307FB_WIDTH,
@@ -227,7 +227,8 @@ static struct fb_deferred_io ssd1307fb_defio = {
227 .deferred_io = ssd1307fb_deferred_io, 227 .deferred_io = ssd1307fb_deferred_io,
228}; 228};
229 229
230static int __devinit ssd1307fb_probe(struct i2c_client *client, const struct i2c_device_id *id) 230static int ssd1307fb_probe(struct i2c_client *client,
231 const struct i2c_device_id *id)
231{ 232{
232 struct fb_info *info; 233 struct fb_info *info;
233 u32 vmem_size = SSD1307FB_WIDTH * SSD1307FB_HEIGHT / 8; 234 u32 vmem_size = SSD1307FB_WIDTH * SSD1307FB_HEIGHT / 8;
@@ -352,7 +353,7 @@ fb_alloc_error:
352 return ret; 353 return ret;
353} 354}
354 355
355static int __devexit ssd1307fb_remove(struct i2c_client *client) 356static int ssd1307fb_remove(struct i2c_client *client)
356{ 357{
357 struct fb_info *info = i2c_get_clientdata(client); 358 struct fb_info *info = i2c_get_clientdata(client);
358 struct ssd1307fb_par *par = info->par; 359 struct ssd1307fb_par *par = info->par;
@@ -380,7 +381,7 @@ MODULE_DEVICE_TABLE(of, ssd1307fb_of_match);
380 381
381static struct i2c_driver ssd1307fb_driver = { 382static struct i2c_driver ssd1307fb_driver = {
382 .probe = ssd1307fb_probe, 383 .probe = ssd1307fb_probe,
383 .remove = __devexit_p(ssd1307fb_remove), 384 .remove = ssd1307fb_remove,
384 .id_table = ssd1307fb_i2c_id, 385 .id_table = ssd1307fb_i2c_id,
385 .driver = { 386 .driver = {
386 .name = "ssd1307fb", 387 .name = "ssd1307fb",