diff options
Diffstat (limited to 'sound/pci/hda/hda_intel.c')
-rw-r--r-- | sound/pci/hda/hda_intel.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index f3b5723c2859..3683978324e8 100644 --- a/sound/pci/hda/hda_intel.c +++ b/sound/pci/hda/hda_intel.c | |||
@@ -2347,10 +2347,10 @@ static int __devinit azx_probe(struct pci_dev *pci, | |||
2347 | return -ENOENT; | 2347 | return -ENOENT; |
2348 | } | 2348 | } |
2349 | 2349 | ||
2350 | card = snd_card_new(index[dev], id[dev], THIS_MODULE, 0); | 2350 | err = snd_card_create(index[dev], id[dev], THIS_MODULE, 0, &card); |
2351 | if (!card) { | 2351 | if (err < 0) { |
2352 | snd_printk(KERN_ERR SFX "Error creating card!\n"); | 2352 | snd_printk(KERN_ERR SFX "Error creating card!\n"); |
2353 | return -ENOMEM; | 2353 | return err; |
2354 | } | 2354 | } |
2355 | 2355 | ||
2356 | err = azx_create(card, pci, dev, pci_id->driver_data, &chip); | 2356 | err = azx_create(card, pci, dev, pci_id->driver_data, &chip); |