diff options
Diffstat (limited to 'sound/pci/hda/patch_cmedia.c')
-rw-r--r-- | sound/pci/hda/patch_cmedia.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/sound/pci/hda/patch_cmedia.c b/sound/pci/hda/patch_cmedia.c index c895a8f21192..617d9012e78a 100644 --- a/sound/pci/hda/patch_cmedia.c +++ b/sound/pci/hda/patch_cmedia.c | |||
@@ -137,20 +137,8 @@ MODULE_ALIAS("snd-hda-codec-id:434d4980"); | |||
137 | MODULE_LICENSE("GPL"); | 137 | MODULE_LICENSE("GPL"); |
138 | MODULE_DESCRIPTION("C-Media HD-audio codec"); | 138 | MODULE_DESCRIPTION("C-Media HD-audio codec"); |
139 | 139 | ||
140 | static struct hda_codec_preset_list cmedia_list = { | 140 | static struct hda_codec_driver cmedia_driver = { |
141 | .preset = snd_hda_preset_cmedia, | 141 | .preset = snd_hda_preset_cmedia, |
142 | .owner = THIS_MODULE, | ||
143 | }; | 142 | }; |
144 | 143 | ||
145 | static int __init patch_cmedia_init(void) | 144 | module_hda_codec_driver(cmedia_driver); |
146 | { | ||
147 | return snd_hda_add_codec_preset(&cmedia_list); | ||
148 | } | ||
149 | |||
150 | static void __exit patch_cmedia_exit(void) | ||
151 | { | ||
152 | snd_hda_delete_codec_preset(&cmedia_list); | ||
153 | } | ||
154 | |||
155 | module_init(patch_cmedia_init) | ||
156 | module_exit(patch_cmedia_exit) | ||