]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - sound/core/seq/seq_device.c
sound: Add module.h to the previously silent sound users
[mirror_ubuntu-bionic-kernel.git] / sound / core / seq / seq_device.c
index 05410e536a4f432c75289cdea5c1843a7bad88dd..5cf8d65ed5ef2cc9fe8cbce1d7275fc7b0745b14 100644 (file)
@@ -37,6 +37,7 @@
  */
 
 #include <linux/init.h>
+#include <linux/module.h>
 #include <sound/core.h>
 #include <sound/info.h>
 #include <sound/seq_device.h>
@@ -187,7 +188,8 @@ int snd_seq_device_new(struct snd_card *card, int device, char *id, int argsize,
        if (result)
                *result = NULL;
 
-       snd_assert(id != NULL, return -EINVAL);
+       if (snd_BUG_ON(!id))
+               return -EINVAL;
 
        ops = find_driver(id, 1);
        if (ops == NULL)
@@ -232,7 +234,8 @@ static int snd_seq_device_free(struct snd_seq_device *dev)
 {
        struct ops_list *ops;
 
-       snd_assert(dev != NULL, return -EINVAL);
+       if (snd_BUG_ON(!dev))
+               return -EINVAL;
 
        ops = find_driver(dev->id, 0);
        if (ops == NULL)