diff options
author | Fabio Porcedda <fabio.porcedda@gmail.com> | 2013-03-15 09:02:38 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2013-04-10 08:03:31 -0400 |
commit | 3ccbf89f4d86cc8f4d6645fa5db0327ef835777b (patch) | |
tree | cdb508ee9b2b9443cc4425b3cf37a6e5feefc008 /drivers/video/amifb.c | |
parent | cd19965a5e80abfa1a83a1fdc35f38c93972e209 (diff) |
drivers: video: use module_platform_driver_probe()
This patch converts the drivers to use the
module_platform_driver_probe() macro which makes the code smaller and
a bit simpler.
Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com>
Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com> # atmel_lcdfb.c
Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
Cc: David Howells <dhowells@redhat.com>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> # amifb.c
Cc: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/amifb.c')
-rw-r--r-- | drivers/video/amifb.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/video/amifb.c b/drivers/video/amifb.c index 7fa1bf823729..77cb4ffa1fe4 100644 --- a/drivers/video/amifb.c +++ b/drivers/video/amifb.c | |||
@@ -3788,19 +3788,7 @@ static struct platform_driver amifb_driver = { | |||
3788 | }, | 3788 | }, |
3789 | }; | 3789 | }; |
3790 | 3790 | ||
3791 | static int __init amifb_init(void) | 3791 | module_platform_driver_probe(amifb_driver, amifb_probe); |
3792 | { | ||
3793 | return platform_driver_probe(&amifb_driver, amifb_probe); | ||
3794 | } | ||
3795 | |||
3796 | module_init(amifb_init); | ||
3797 | |||
3798 | static void __exit amifb_exit(void) | ||
3799 | { | ||
3800 | platform_driver_unregister(&amifb_driver); | ||
3801 | } | ||
3802 | |||
3803 | module_exit(amifb_exit); | ||
3804 | 3792 | ||
3805 | MODULE_LICENSE("GPL"); | 3793 | MODULE_LICENSE("GPL"); |
3806 | MODULE_ALIAS("platform:amiga-video"); | 3794 | MODULE_ALIAS("platform:amiga-video"); |