diff options
author | Axel Lin <axel.lin@gmail.com> | 2011-11-24 21:12:16 -0500 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-11-25 08:15:31 -0500 |
commit | beda5bf575a93823289fbeb868b42e75e9f08d96 (patch) | |
tree | b33732aec1d0724f77fb48f96eb34766356d2184 /sound/soc/omap/omap-hdmi.c | |
parent | f9b8a51493d69841bab3c5e85f335b6af0c8e5c2 (diff) |
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/omap-hdmi.c')
-rw-r--r-- | sound/soc/omap/omap-hdmi.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/sound/soc/omap/omap-hdmi.c b/sound/soc/omap/omap-hdmi.c index 9bb1cf89b4a4..38e0defa7078 100644 --- a/sound/soc/omap/omap-hdmi.c +++ b/sound/soc/omap/omap-hdmi.c | |||
@@ -139,17 +139,7 @@ static struct platform_driver hdmi_dai_driver = { | |||
139 | .remove = __devexit_p(omap_hdmi_remove), | 139 | .remove = __devexit_p(omap_hdmi_remove), |
140 | }; | 140 | }; |
141 | 141 | ||
142 | static int __init hdmi_dai_init(void) | 142 | module_platform_driver(hdmi_dai_driver); |
143 | { | ||
144 | return platform_driver_register(&hdmi_dai_driver); | ||
145 | } | ||
146 | module_init(hdmi_dai_init); | ||
147 | |||
148 | static void __exit hdmi_dai_exit(void) | ||
149 | { | ||
150 | platform_driver_unregister(&hdmi_dai_driver); | ||
151 | } | ||
152 | module_exit(hdmi_dai_exit); | ||
153 | 143 | ||
154 | MODULE_AUTHOR("Jorge Candelaria <jorge.candelaria@ti.com>"); | 144 | MODULE_AUTHOR("Jorge Candelaria <jorge.candelaria@ti.com>"); |
155 | MODULE_AUTHOR("Ricardo Neri <ricardo.neri@ti.com>"); | 145 | MODULE_AUTHOR("Ricardo Neri <ricardo.neri@ti.com>"); |