]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - sound/pci/emu10k1/emu10k1.c
ALSA: pci: Convert to snd_card_new() with a device pointer
[mirror_ubuntu-bionic-kernel.git] / sound / pci / emu10k1 / emu10k1.c
index 9e1bd0c39a8cf27230bd50196a525d1c2c3f525d..5c0413b40dc31f34925683ddb2a636358e6ccbc8 100644 (file)
@@ -117,7 +117,8 @@ static int snd_card_emu10k1_probe(struct pci_dev *pci,
                return -ENOENT;
        }
 
-       err = snd_card_create(index[dev], id[dev], THIS_MODULE, 0, &card);
+       err = snd_card_new(&pci->dev, index[dev], id[dev], THIS_MODULE,
+                          0, &card);
        if (err < 0)
                return err;
        if (max_buffer_size[dev] < 32)