diff options
author | H Hartley Sweeten <hartleys@visionengravers.com> | 2013-04-29 18:05:44 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-04-29 18:54:26 -0400 |
commit | bb5254d2f3b60fdd49966426ee2a86a904fdf2f8 (patch) | |
tree | 4a47a5580892186aa5b0512fb0352a0b7b9907cf | |
parent | 6637eca322e912bf4e272ab33447bdafea2658e8 (diff) |
drivers/video/ep93xx-fb.c: fix section mismatch and use module_platform_driver
Remove the __init tags from the ep93xxfb_calc_fbsize() and
ep93xxfb_alloc_videomem() functions to fix the section mismatch
warnings.
Use module_platform_driver() to remove the init/exit boilerplate.
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ryan Mallon <rmallon@gmail.com>
Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | drivers/video/ep93xx-fb.c | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/drivers/video/ep93xx-fb.c b/drivers/video/ep93xx-fb.c index e06cd5d90c97..ee1ee5401544 100644 --- a/drivers/video/ep93xx-fb.c +++ b/drivers/video/ep93xx-fb.c | |||
@@ -419,7 +419,7 @@ static struct fb_ops ep93xxfb_ops = { | |||
419 | .fb_mmap = ep93xxfb_mmap, | 419 | .fb_mmap = ep93xxfb_mmap, |
420 | }; | 420 | }; |
421 | 421 | ||
422 | static int __init ep93xxfb_calc_fbsize(struct ep93xxfb_mach_info *mach_info) | 422 | static int ep93xxfb_calc_fbsize(struct ep93xxfb_mach_info *mach_info) |
423 | { | 423 | { |
424 | int i, fb_size = 0; | 424 | int i, fb_size = 0; |
425 | 425 | ||
@@ -441,7 +441,7 @@ static int __init ep93xxfb_calc_fbsize(struct ep93xxfb_mach_info *mach_info) | |||
441 | return fb_size; | 441 | return fb_size; |
442 | } | 442 | } |
443 | 443 | ||
444 | static int __init ep93xxfb_alloc_videomem(struct fb_info *info) | 444 | static int ep93xxfb_alloc_videomem(struct fb_info *info) |
445 | { | 445 | { |
446 | struct ep93xx_fbi *fbi = info->par; | 446 | struct ep93xx_fbi *fbi = info->par; |
447 | char __iomem *virt_addr; | 447 | char __iomem *virt_addr; |
@@ -627,19 +627,7 @@ static struct platform_driver ep93xxfb_driver = { | |||
627 | .owner = THIS_MODULE, | 627 | .owner = THIS_MODULE, |
628 | }, | 628 | }, |
629 | }; | 629 | }; |
630 | 630 | module_platform_driver(ep93xxfb_driver); | |
631 | static int ep93xxfb_init(void) | ||
632 | { | ||
633 | return platform_driver_register(&ep93xxfb_driver); | ||
634 | } | ||
635 | |||
636 | static void __exit ep93xxfb_exit(void) | ||
637 | { | ||
638 | platform_driver_unregister(&ep93xxfb_driver); | ||
639 | } | ||
640 | |||
641 | module_init(ep93xxfb_init); | ||
642 | module_exit(ep93xxfb_exit); | ||
643 | 631 | ||
644 | MODULE_DESCRIPTION("EP93XX Framebuffer Driver"); | 632 | MODULE_DESCRIPTION("EP93XX Framebuffer Driver"); |
645 | MODULE_ALIAS("platform:ep93xx-fb"); | 633 | MODULE_ALIAS("platform:ep93xx-fb"); |