diff options
Diffstat (limited to 'sound/pci/es1938.c')
-rw-r--r-- | sound/pci/es1938.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sound/pci/es1938.c b/sound/pci/es1938.c index 9213fb38921c..33489bcc0aff 100644 --- a/sound/pci/es1938.c +++ b/sound/pci/es1938.c | |||
@@ -1658,8 +1658,6 @@ static int snd_es1938_create(struct snd_card *card, | |||
1658 | return err; | 1658 | return err; |
1659 | } | 1659 | } |
1660 | 1660 | ||
1661 | snd_card_set_dev(card, &pci->dev); | ||
1662 | |||
1663 | *rchip = chip; | 1661 | *rchip = chip; |
1664 | return 0; | 1662 | return 0; |
1665 | } | 1663 | } |
@@ -1808,7 +1806,8 @@ static int snd_es1938_probe(struct pci_dev *pci, | |||
1808 | return -ENOENT; | 1806 | return -ENOENT; |
1809 | } | 1807 | } |
1810 | 1808 | ||
1811 | err = snd_card_create(index[dev], id[dev], THIS_MODULE, 0, &card); | 1809 | err = snd_card_new(&pci->dev, index[dev], id[dev], THIS_MODULE, |
1810 | 0, &card); | ||
1812 | if (err < 0) | 1811 | if (err < 0) |
1813 | return err; | 1812 | return err; |
1814 | for (idx = 0; idx < 5; idx++) { | 1813 | for (idx = 0; idx < 5; idx++) { |