diff options
Diffstat (limited to 'sound/soc/omap/omap-hdmi.c')
-rw-r--r-- | sound/soc/omap/omap-hdmi.c | 14 |
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 | ||
86 | static struct snd_soc_dai_ops omap_hdmi_dai_ops = { | 86 | static 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 | ||
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>"); |