aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/omap/omap-hdmi.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/omap/omap-hdmi.c')
-rw-r--r--sound/soc/omap/omap-hdmi.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/sound/soc/omap/omap-hdmi.c b/sound/soc/omap/omap-hdmi.c
index 36c6eaeffb0..38e0defa707 100644
--- a/sound/soc/omap/omap-hdmi.c
+++ b/sound/soc/omap/omap-hdmi.c
@@ -83,7 +83,7 @@ static int omap_hdmi_dai_hw_params(struct snd_pcm_substream *substream,
83 return err; 83 return err;
84} 84}
85 85
86static struct snd_soc_dai_ops omap_hdmi_dai_ops = { 86static const struct snd_soc_dai_ops omap_hdmi_dai_ops = {
87 .startup = omap_hdmi_dai_startup, 87 .startup = omap_hdmi_dai_startup,
88 .hw_params = omap_hdmi_dai_hw_params, 88 .hw_params = omap_hdmi_dai_hw_params,
89}; 89};
@@ -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
142static int __init hdmi_dai_init(void) 142module_platform_driver(hdmi_dai_driver);
143{
144 return platform_driver_register(&hdmi_dai_driver);
145}
146module_init(hdmi_dai_init);
147
148static void __exit hdmi_dai_exit(void)
149{
150 platform_driver_unregister(&hdmi_dai_driver);
151}
152module_exit(hdmi_dai_exit);
153 143
154MODULE_AUTHOR("Jorge Candelaria <jorge.candelaria@ti.com>"); 144MODULE_AUTHOR("Jorge Candelaria <jorge.candelaria@ti.com>");
155MODULE_AUTHOR("Ricardo Neri <ricardo.neri@ti.com>"); 145MODULE_AUTHOR("Ricardo Neri <ricardo.neri@ti.com>");