diff options
Diffstat (limited to 'sound/pci/hda/patch_cirrus.c')
-rw-r--r-- | sound/pci/hda/patch_cirrus.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/sound/pci/hda/patch_cirrus.c b/sound/pci/hda/patch_cirrus.c index dd2b3d92071f..50e9dd675579 100644 --- a/sound/pci/hda/patch_cirrus.c +++ b/sound/pci/hda/patch_cirrus.c | |||
@@ -1221,20 +1221,8 @@ MODULE_ALIAS("snd-hda-codec-id:10134213"); | |||
1221 | MODULE_LICENSE("GPL"); | 1221 | MODULE_LICENSE("GPL"); |
1222 | MODULE_DESCRIPTION("Cirrus Logic HD-audio codec"); | 1222 | MODULE_DESCRIPTION("Cirrus Logic HD-audio codec"); |
1223 | 1223 | ||
1224 | static struct hda_codec_preset_list cirrus_list = { | 1224 | static struct hda_codec_driver cirrus_driver = { |
1225 | .preset = snd_hda_preset_cirrus, | 1225 | .preset = snd_hda_preset_cirrus, |
1226 | .owner = THIS_MODULE, | ||
1227 | }; | 1226 | }; |
1228 | 1227 | ||
1229 | static int __init patch_cirrus_init(void) | 1228 | module_hda_codec_driver(cirrus_driver); |
1230 | { | ||
1231 | return snd_hda_add_codec_preset(&cirrus_list); | ||
1232 | } | ||
1233 | |||
1234 | static void __exit patch_cirrus_exit(void) | ||
1235 | { | ||
1236 | snd_hda_delete_codec_preset(&cirrus_list); | ||
1237 | } | ||
1238 | |||
1239 | module_init(patch_cirrus_init) | ||
1240 | module_exit(patch_cirrus_exit) | ||