diff options
Diffstat (limited to 'sound/pci/hda/patch_analog.c')
-rw-r--r-- | sound/pci/hda/patch_analog.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/sound/pci/hda/patch_analog.c b/sound/pci/hda/patch_analog.c index d285904cdb64..af4c7be86c27 100644 --- a/sound/pci/hda/patch_analog.c +++ b/sound/pci/hda/patch_analog.c | |||
@@ -1194,20 +1194,8 @@ MODULE_ALIAS("snd-hda-codec-id:11d4*"); | |||
1194 | MODULE_LICENSE("GPL"); | 1194 | MODULE_LICENSE("GPL"); |
1195 | MODULE_DESCRIPTION("Analog Devices HD-audio codec"); | 1195 | MODULE_DESCRIPTION("Analog Devices HD-audio codec"); |
1196 | 1196 | ||
1197 | static struct hda_codec_preset_list analog_list = { | 1197 | static struct hda_codec_driver analog_driver = { |
1198 | .preset = snd_hda_preset_analog, | 1198 | .preset = snd_hda_preset_analog, |
1199 | .owner = THIS_MODULE, | ||
1200 | }; | 1199 | }; |
1201 | 1200 | ||
1202 | static int __init patch_analog_init(void) | 1201 | module_hda_codec_driver(analog_driver); |
1203 | { | ||
1204 | return snd_hda_add_codec_preset(&analog_list); | ||
1205 | } | ||
1206 | |||
1207 | static void __exit patch_analog_exit(void) | ||
1208 | { | ||
1209 | snd_hda_delete_codec_preset(&analog_list); | ||
1210 | } | ||
1211 | |||
1212 | module_init(patch_analog_init) | ||
1213 | module_exit(patch_analog_exit) | ||