aboutsummaryrefslogtreecommitdiffstats
path: root/include/sound
diff options
context:
space:
mode:
Diffstat (limited to 'include/sound')
-rw-r--r--include/sound/core.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sound/core.h b/include/sound/core.h
index 3c493ad620d1..4b9e609975ab 100644
--- a/include/sound/core.h
+++ b/include/sound/core.h
@@ -242,7 +242,7 @@ static inline int snd_register_device(int type, struct snd_card *card, int dev,
242{ 242{
243 return snd_register_device_for_dev(type, card, dev, f_ops, 243 return snd_register_device_for_dev(type, card, dev, f_ops,
244 private_data, name, 244 private_data, name,
245 card ? card->dev : NULL); 245 snd_card_get_device_link(card));
246} 246}
247 247
248int snd_unregister_device(int type, struct snd_card *card, int dev); 248int snd_unregister_device(int type, struct snd_card *card, int dev);