Merge branch 'topic/snd_card_new-err' into topic/cs423x-merge
Takashi Iwai [Mon, 16 Feb 2009 22:03:57 +0000 (23:03 +0100)]
12 files changed:
1  2 
sound/isa/ad1816a/ad1816a.c
sound/isa/cmi8330.c
sound/isa/es1688/es1688.c
sound/isa/gus/interwave.c
sound/isa/opl3sa2.c
sound/isa/opti9xx/opti92x-ad1848.c
sound/isa/sc6000.c
sound/isa/wavefront/wavefront.c
sound/pci/hda/hda_intel.c
sound/ppc/snd_ps3.c
sound/soc/soc-core.c
sound/usb/caiaq/caiaq-device.c

@@@ -156,11 -156,11 +156,12 @@@ static int __devinit snd_card_ad1816a_p
        struct snd_card_ad1816a *acard;
        struct snd_ad1816a *chip;
        struct snd_opl3 *opl3;
 +      struct snd_timer *timer;
  
-       if ((card = snd_card_new(index[dev], id[dev], THIS_MODULE,
-                                sizeof(struct snd_card_ad1816a))) == NULL)
-               return -ENOMEM;
+       error = snd_card_create(index[dev], id[dev], THIS_MODULE,
+                               sizeof(struct snd_card_ad1816a), &card);
+       if (error < 0)
+               return error;
        acard = (struct snd_card_ad1816a *)card->private_data;
  
        if ((error = snd_card_ad1816a_pnp(dev, acard, pcard, pid))) {
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge