diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-11-25 10:12:16 +0800 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-11-25 13:15:31 +0000 |
commit | beda5bf575a93823289fbeb868b42e75e9f08d96 (patch) | |
tree | b33732aec1d0724f77fb48f96eb34766356d2184 /sound/soc/omap/omap4-hdmi-card.c | |
parent | f9b8a51493d69841bab3c5e85f335b6af0c8e5c2 (diff) | |
download | blackbird-op-linux-beda5bf575a93823289fbeb868b42e75e9f08d96.tar.gz blackbird-op-linux-beda5bf575a93823289fbeb868b42e75e9f08d96.zip |
ASoC: Convert omap directory to module_platform_driver
Factor out some boilerplate code.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Jarkko Nikula <jarkko.nikula@bitmer.com>
Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/omap/omap4-hdmi-card.c')
-rw-r--r-- | sound/soc/omap/omap4-hdmi-card.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/sound/soc/omap/omap4-hdmi-card.c b/sound/soc/omap/omap4-hdmi-card.c index 8671261ba16d..52d471c1eeed 100644 --- a/sound/soc/omap/omap4-hdmi-card.c +++ b/sound/soc/omap/omap4-hdmi-card.c @@ -112,17 +112,7 @@ static struct platform_driver omap4_hdmi_driver = { .remove = __devexit_p(omap4_hdmi_remove), }; -static int __init omap4_hdmi_init(void) -{ - return platform_driver_register(&omap4_hdmi_driver); -} -module_init(omap4_hdmi_init); - -static void __exit omap4_hdmi_exit(void) -{ - platform_driver_unregister(&omap4_hdmi_driver); -} -module_exit(omap4_hdmi_exit); +module_platform_driver(omap4_hdmi_driver); MODULE_AUTHOR("Ricardo Neri <ricardo.neri@ti.com>"); MODULE_DESCRIPTION("OMAP4 HDMI machine ASoC driver"); |