aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/core/compress_offload.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/core/compress_offload.c b/sound/core/compress_offload.c
index 98969541cbcc..5863ba6dd12b 100644
--- a/sound/core/compress_offload.c
+++ b/sound/core/compress_offload.c
@@ -837,7 +837,8 @@ static int snd_compress_dev_disconnect(struct snd_device *device)
837 struct snd_compr *compr; 837 struct snd_compr *compr;
838 838
839 compr = device->device_data; 839 compr = device->device_data;
840 snd_unregister_device(compr->direction, compr->card, compr->device); 840 snd_unregister_device(SNDRV_DEVICE_TYPE_COMPRESS, compr->card,
841 compr->device);
841 return 0; 842 return 0;
842} 843}
843 844