diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-12-21 16:07:39 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-03 18:57:01 -0500 |
commit | 48c68c4f1b542444f175a9e136febcecf3e704d8 (patch) | |
tree | d28f4f3b42643990c2908d27e9caf120f6234b73 /drivers/video/s3c-fb.c | |
parent | 8590dbc79a0ff5d7ab16b2b1743684c241ae3c65 (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/s3c-fb.c')
-rw-r--r-- | drivers/video/s3c-fb.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/drivers/video/s3c-fb.c b/drivers/video/s3c-fb.c index 1a00ad241edd..9b57a235c9bc 100644 --- a/drivers/video/s3c-fb.c +++ b/drivers/video/s3c-fb.c | |||
@@ -1081,8 +1081,7 @@ static void s3c_fb_missing_pixclock(struct fb_videomode *mode) | |||
1081 | * | 1081 | * |
1082 | * Allocate memory for the given framebuffer. | 1082 | * Allocate memory for the given framebuffer. |
1083 | */ | 1083 | */ |
1084 | static int __devinit s3c_fb_alloc_memory(struct s3c_fb *sfb, | 1084 | static int s3c_fb_alloc_memory(struct s3c_fb *sfb, struct s3c_fb_win *win) |
1085 | struct s3c_fb_win *win) | ||
1086 | { | 1085 | { |
1087 | struct s3c_fb_pd_win *windata = win->windata; | 1086 | struct s3c_fb_pd_win *windata = win->windata; |
1088 | unsigned int real_size, virt_size, size; | 1087 | unsigned int real_size, virt_size, size; |
@@ -1172,9 +1171,9 @@ static void s3c_fb_release_win(struct s3c_fb *sfb, struct s3c_fb_win *win) | |||
1172 | * Allocate and do the basic initialisation for one of the hardware's graphics | 1171 | * Allocate and do the basic initialisation for one of the hardware's graphics |
1173 | * windows. | 1172 | * windows. |
1174 | */ | 1173 | */ |
1175 | static int __devinit s3c_fb_probe_win(struct s3c_fb *sfb, unsigned int win_no, | 1174 | static int s3c_fb_probe_win(struct s3c_fb *sfb, unsigned int win_no, |
1176 | struct s3c_fb_win_variant *variant, | 1175 | struct s3c_fb_win_variant *variant, |
1177 | struct s3c_fb_win **res) | 1176 | struct s3c_fb_win **res) |
1178 | { | 1177 | { |
1179 | struct fb_var_screeninfo *var; | 1178 | struct fb_var_screeninfo *var; |
1180 | struct fb_videomode initmode; | 1179 | struct fb_videomode initmode; |
@@ -1360,7 +1359,7 @@ static void s3c_fb_clear_win(struct s3c_fb *sfb, int win) | |||
1360 | } | 1359 | } |
1361 | } | 1360 | } |
1362 | 1361 | ||
1363 | static int __devinit s3c_fb_probe(struct platform_device *pdev) | 1362 | static int s3c_fb_probe(struct platform_device *pdev) |
1364 | { | 1363 | { |
1365 | const struct platform_device_id *platid; | 1364 | const struct platform_device_id *platid; |
1366 | struct s3c_fb_driverdata *fbdrv; | 1365 | struct s3c_fb_driverdata *fbdrv; |
@@ -1521,7 +1520,7 @@ err_bus_clk: | |||
1521 | * Shutdown and then release all the resources that the driver allocated | 1520 | * Shutdown and then release all the resources that the driver allocated |
1522 | * on initialisation. | 1521 | * on initialisation. |
1523 | */ | 1522 | */ |
1524 | static int __devexit s3c_fb_remove(struct platform_device *pdev) | 1523 | static int s3c_fb_remove(struct platform_device *pdev) |
1525 | { | 1524 | { |
1526 | struct s3c_fb *sfb = platform_get_drvdata(pdev); | 1525 | struct s3c_fb *sfb = platform_get_drvdata(pdev); |
1527 | int win; | 1526 | int win; |
@@ -2035,7 +2034,7 @@ static const struct dev_pm_ops s3cfb_pm_ops = { | |||
2035 | 2034 | ||
2036 | static struct platform_driver s3c_fb_driver = { | 2035 | static struct platform_driver s3c_fb_driver = { |
2037 | .probe = s3c_fb_probe, | 2036 | .probe = s3c_fb_probe, |
2038 | .remove = __devexit_p(s3c_fb_remove), | 2037 | .remove = s3c_fb_remove, |
2039 | .id_table = s3c_fb_driver_ids, | 2038 | .id_table = s3c_fb_driver_ids, |
2040 | .driver = { | 2039 | .driver = { |
2041 | .name = "s3c-fb", | 2040 | .name = "s3c-fb", |