aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/es1938.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/pci/es1938.c')
-rw-r--r--sound/pci/es1938.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/pci/es1938.c b/sound/pci/es1938.c
index e4ba84bed4ad..dd63b132fb8e 100644
--- a/sound/pci/es1938.c
+++ b/sound/pci/es1938.c
@@ -1806,9 +1806,9 @@ static int __devinit snd_es1938_probe(struct pci_dev *pci,
1806 return -ENOENT; 1806 return -ENOENT;
1807 } 1807 }
1808 1808
1809 card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0); 1809 err = snd_card_create(index[dev], id[dev], THIS_MODULE, 0, &card);
1810 if (card == NULL) 1810 if (err < 0)
1811 return -ENOMEM; 1811 return err;
1812 for (idx = 0; idx < 5; idx++) { 1812 for (idx = 0; idx < 5; idx++) {
1813 if (pci_resource_start(pci, idx) == 0 || 1813 if (pci_resource_start(pci, idx) == 0 ||
1814 !(pci_resource_flags(pci, idx) & IORESOURCE_IO)) { 1814 !(pci_resource_flags(pci, idx) & IORESOURCE_IO)) {