ALSA: als4000: Use standard printk helpers
[firefly-linux-kernel-4.4.55.git] / sound / pci / atiixp_modem.c
index 289563ecb6dd704e0a3f89d81ca19afef63cf98a..2b3244a85cf8691638f2bbfd52067b4e2e24adf1 100644 (file)
@@ -1282,8 +1282,6 @@ static int snd_atiixp_create(struct snd_card *card,
                return err;
        }
 
-       snd_card_set_dev(card, &pci->dev);
-
        *r_chip = chip;
        return 0;
 }
@@ -1296,7 +1294,7 @@ static int snd_atiixp_probe(struct pci_dev *pci,
        struct atiixp_modem *chip;
        int err;
 
-       err = snd_card_create(index, id, THIS_MODULE, 0, &card);
+       err = snd_card_new(&pci->dev, index, id, THIS_MODULE, 0, &card);
        if (err < 0)
                return err;