diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2019-04-01 11:46:55 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> | 2019-04-01 11:46:55 -0400 |
commit | 577eabb2cbe2e7d0ab1ceef3047ea698caf5db15 (patch) | |
tree | 3fcb492b2a5f91cc25660175bc7dbdb53bd5c89c | |
parent | e4bedbb625c9fbf205d9fd3d9532e7ebda4a977d (diff) |
fbdev: atafb: Remove obsolete module support
CONFIG_FB_ATARI is bool, hence the Atari frame buffer driver cannot be
built as a module. In addition, the module support code refers to a
function atafb_deinit(), which never existed.
Replace module_init() by device_initcall().
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Michael Schmitz <schmitzmic@gmail.com>
Cc: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
-rw-r--r-- | drivers/video/fbdev/atafb.c | 16 | ||||
-rw-r--r-- | drivers/video/fbdev/atafb_iplan2p2.c | 23 | ||||
-rw-r--r-- | drivers/video/fbdev/atafb_iplan2p4.c | 23 | ||||
-rw-r--r-- | drivers/video/fbdev/atafb_iplan2p8.c | 23 | ||||
-rw-r--r-- | drivers/video/fbdev/atafb_mfb.c | 23 |
5 files changed, 1 insertions, 107 deletions
diff --git a/drivers/video/fbdev/atafb.c b/drivers/video/fbdev/atafb.c index e9d31a4299ee..d82007c113e6 100644 --- a/drivers/video/fbdev/atafb.c +++ b/drivers/video/fbdev/atafb.c | |||
@@ -47,7 +47,6 @@ | |||
47 | #define ATAFB_EXT | 47 | #define ATAFB_EXT |
48 | #define ATAFB_FALCON | 48 | #define ATAFB_FALCON |
49 | 49 | ||
50 | #include <linux/module.h> | ||
51 | #include <linux/kernel.h> | 50 | #include <linux/kernel.h> |
52 | #include <linux/errno.h> | 51 | #include <linux/errno.h> |
53 | #include <linux/string.h> | 52 | #include <linux/string.h> |
@@ -3078,14 +3077,11 @@ int __init atafb_init(void) | |||
3078 | int pad, detected_mode, error; | 3077 | int pad, detected_mode, error; |
3079 | unsigned int defmode = 0; | 3078 | unsigned int defmode = 0; |
3080 | unsigned long mem_req; | 3079 | unsigned long mem_req; |
3081 | |||
3082 | #ifndef MODULE | ||
3083 | char *option = NULL; | 3080 | char *option = NULL; |
3084 | 3081 | ||
3085 | if (fb_get_options("atafb", &option)) | 3082 | if (fb_get_options("atafb", &option)) |
3086 | return -ENODEV; | 3083 | return -ENODEV; |
3087 | atafb_setup(option); | 3084 | atafb_setup(option); |
3088 | #endif | ||
3089 | printk("atafb_init: start\n"); | 3085 | printk("atafb_init: start\n"); |
3090 | 3086 | ||
3091 | if (!MACH_IS_ATARI) | 3087 | if (!MACH_IS_ATARI) |
@@ -3251,14 +3247,4 @@ int __init atafb_init(void) | |||
3251 | return 0; | 3247 | return 0; |
3252 | } | 3248 | } |
3253 | 3249 | ||
3254 | module_init(atafb_init); | 3250 | device_initcall(atafb_init); |
3255 | |||
3256 | #ifdef MODULE | ||
3257 | MODULE_LICENSE("GPL"); | ||
3258 | |||
3259 | int cleanup_module(void) | ||
3260 | { | ||
3261 | unregister_framebuffer(&fb_info); | ||
3262 | return atafb_deinit(); | ||
3263 | } | ||
3264 | #endif /* MODULE */ | ||
diff --git a/drivers/video/fbdev/atafb_iplan2p2.c b/drivers/video/fbdev/atafb_iplan2p2.c index 8cc9c50379d0..a1660c24bf36 100644 --- a/drivers/video/fbdev/atafb_iplan2p2.c +++ b/drivers/video/fbdev/atafb_iplan2p2.c | |||
@@ -10,7 +10,6 @@ | |||
10 | * more details. | 10 | * more details. |
11 | */ | 11 | */ |
12 | 12 | ||
13 | #include <linux/module.h> | ||
14 | #include <linux/string.h> | 13 | #include <linux/string.h> |
15 | #include <linux/fb.h> | 14 | #include <linux/fb.h> |
16 | 15 | ||
@@ -269,25 +268,3 @@ void atafb_iplan2p2_linefill(struct fb_info *info, u_long next_line, | |||
269 | if (width) | 268 | if (width) |
270 | fill8_2col((u8 *)dest, fgcolor, bgcolor, *data); | 269 | fill8_2col((u8 *)dest, fgcolor, bgcolor, *data); |
271 | } | 270 | } |
272 | |||
273 | #ifdef MODULE | ||
274 | MODULE_LICENSE("GPL"); | ||
275 | |||
276 | int init_module(void) | ||
277 | { | ||
278 | return 0; | ||
279 | } | ||
280 | |||
281 | void cleanup_module(void) | ||
282 | { | ||
283 | } | ||
284 | #endif /* MODULE */ | ||
285 | |||
286 | |||
287 | /* | ||
288 | * Visible symbols for modules | ||
289 | */ | ||
290 | |||
291 | EXPORT_SYMBOL(atafb_iplan2p2_copyarea); | ||
292 | EXPORT_SYMBOL(atafb_iplan2p2_fillrect); | ||
293 | EXPORT_SYMBOL(atafb_iplan2p2_linefill); | ||
diff --git a/drivers/video/fbdev/atafb_iplan2p4.c b/drivers/video/fbdev/atafb_iplan2p4.c index bee0d89463f7..663d66582d79 100644 --- a/drivers/video/fbdev/atafb_iplan2p4.c +++ b/drivers/video/fbdev/atafb_iplan2p4.c | |||
@@ -10,7 +10,6 @@ | |||
10 | * more details. | 10 | * more details. |
11 | */ | 11 | */ |
12 | 12 | ||
13 | #include <linux/module.h> | ||
14 | #include <linux/string.h> | 13 | #include <linux/string.h> |
15 | #include <linux/fb.h> | 14 | #include <linux/fb.h> |
16 | 15 | ||
@@ -284,25 +283,3 @@ void atafb_iplan2p4_linefill(struct fb_info *info, u_long next_line, | |||
284 | if (width) | 283 | if (width) |
285 | fill8_2col((u8 *)dest, fgcolor, bgcolor, *data); | 284 | fill8_2col((u8 *)dest, fgcolor, bgcolor, *data); |
286 | } | 285 | } |
287 | |||
288 | #ifdef MODULE | ||
289 | MODULE_LICENSE("GPL"); | ||
290 | |||
291 | int init_module(void) | ||
292 | { | ||
293 | return 0; | ||
294 | } | ||
295 | |||
296 | void cleanup_module(void) | ||
297 | { | ||
298 | } | ||
299 | #endif /* MODULE */ | ||
300 | |||
301 | |||
302 | /* | ||
303 | * Visible symbols for modules | ||
304 | */ | ||
305 | |||
306 | EXPORT_SYMBOL(atafb_iplan2p4_copyarea); | ||
307 | EXPORT_SYMBOL(atafb_iplan2p4_fillrect); | ||
308 | EXPORT_SYMBOL(atafb_iplan2p4_linefill); | ||
diff --git a/drivers/video/fbdev/atafb_iplan2p8.c b/drivers/video/fbdev/atafb_iplan2p8.c index 356fb52ce443..39a6cbbb6ca3 100644 --- a/drivers/video/fbdev/atafb_iplan2p8.c +++ b/drivers/video/fbdev/atafb_iplan2p8.c | |||
@@ -10,7 +10,6 @@ | |||
10 | * more details. | 10 | * more details. |
11 | */ | 11 | */ |
12 | 12 | ||
13 | #include <linux/module.h> | ||
14 | #include <linux/string.h> | 13 | #include <linux/string.h> |
15 | #include <linux/fb.h> | 14 | #include <linux/fb.h> |
16 | 15 | ||
@@ -321,25 +320,3 @@ void atafb_iplan2p8_linefill(struct fb_info *info, u_long next_line, | |||
321 | if (width) | 320 | if (width) |
322 | fill8_2col((u8 *)dest, fgcolor, bgcolor, *data); | 321 | fill8_2col((u8 *)dest, fgcolor, bgcolor, *data); |
323 | } | 322 | } |
324 | |||
325 | #ifdef MODULE | ||
326 | MODULE_LICENSE("GPL"); | ||
327 | |||
328 | int init_module(void) | ||
329 | { | ||
330 | return 0; | ||
331 | } | ||
332 | |||
333 | void cleanup_module(void) | ||
334 | { | ||
335 | } | ||
336 | #endif /* MODULE */ | ||
337 | |||
338 | |||
339 | /* | ||
340 | * Visible symbols for modules | ||
341 | */ | ||
342 | |||
343 | EXPORT_SYMBOL(atafb_iplan2p8_copyarea); | ||
344 | EXPORT_SYMBOL(atafb_iplan2p8_fillrect); | ||
345 | EXPORT_SYMBOL(atafb_iplan2p8_linefill); | ||
diff --git a/drivers/video/fbdev/atafb_mfb.c b/drivers/video/fbdev/atafb_mfb.c index 6a352d62eecf..384fd3e4d3e1 100644 --- a/drivers/video/fbdev/atafb_mfb.c +++ b/drivers/video/fbdev/atafb_mfb.c | |||
@@ -9,7 +9,6 @@ | |||
9 | * more details. | 9 | * more details. |
10 | */ | 10 | */ |
11 | 11 | ||
12 | #include <linux/module.h> | ||
13 | #include <linux/string.h> | 12 | #include <linux/string.h> |
14 | #include <linux/fb.h> | 13 | #include <linux/fb.h> |
15 | 14 | ||
@@ -88,25 +87,3 @@ void atafb_mfb_linefill(struct fb_info *info, u_long next_line, | |||
88 | *dest++ = *data++; | 87 | *dest++ = *data++; |
89 | } | 88 | } |
90 | } | 89 | } |
91 | |||
92 | #ifdef MODULE | ||
93 | MODULE_LICENSE("GPL"); | ||
94 | |||
95 | int init_module(void) | ||
96 | { | ||
97 | return 0; | ||
98 | } | ||
99 | |||
100 | void cleanup_module(void) | ||
101 | { | ||
102 | } | ||
103 | #endif /* MODULE */ | ||
104 | |||
105 | |||
106 | /* | ||
107 | * Visible symbols for modules | ||
108 | */ | ||
109 | |||
110 | EXPORT_SYMBOL(atafb_mfb_copyarea); | ||
111 | EXPORT_SYMBOL(atafb_mfb_fillrect); | ||
112 | EXPORT_SYMBOL(atafb_mfb_linefill); | ||