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/sh_mobile_hdmi.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/sh_mobile_hdmi.c')
-rw-r--r-- | drivers/video/sh_mobile_hdmi.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/video/sh_mobile_hdmi.c b/drivers/video/sh_mobile_hdmi.c index 930e550e752a..bfe4728480fd 100644 --- a/drivers/video/sh_mobile_hdmi.c +++ b/drivers/video/sh_mobile_hdmi.c | |||
@@ -1445,17 +1445,7 @@ static struct platform_driver sh_hdmi_driver = { | |||
1445 | }, | 1445 | }, |
1446 | }; | 1446 | }; |
1447 | 1447 | ||
1448 | static int __init sh_hdmi_init(void) | 1448 | module_platform_driver_probe(sh_hdmi_driver, sh_hdmi_probe); |
1449 | { | ||
1450 | return platform_driver_probe(&sh_hdmi_driver, sh_hdmi_probe); | ||
1451 | } | ||
1452 | module_init(sh_hdmi_init); | ||
1453 | |||
1454 | static void __exit sh_hdmi_exit(void) | ||
1455 | { | ||
1456 | platform_driver_unregister(&sh_hdmi_driver); | ||
1457 | } | ||
1458 | module_exit(sh_hdmi_exit); | ||
1459 | 1449 | ||
1460 | MODULE_AUTHOR("Guennadi Liakhovetski <g.liakhovetski@gmx.de>"); | 1450 | MODULE_AUTHOR("Guennadi Liakhovetski <g.liakhovetski@gmx.de>"); |
1461 | MODULE_DESCRIPTION("SuperH / ARM-shmobile HDMI driver"); | 1451 | MODULE_DESCRIPTION("SuperH / ARM-shmobile HDMI driver"); |