Merge branch 'topic/isa-misc' into for-linus
authorTakashi Iwai <tiwai@suse.de>
Mon, 23 Mar 2009 23:36:13 +0000 (00:36 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 23 Mar 2009 23:36:13 +0000 (00:36 +0100)
1  2 
sound/isa/opl3sa2.c

index 9c5fce31f06bdb2e61d9b8ce8fcdacba0bbe6f26,3f0b877bc8b585abe170303922a792481184c13f..ef95279da7a3a47a7bcfe5b21674e6c0f063ce7d
@@@ -631,14 -631,12 +631,14 @@@ static int snd_opl3sa2_card_new(int dev
  {
        struct snd_card *card;
        struct snd_opl3sa2 *chip;
 +      int err;
  
 -      card = snd_card_new(index[dev], id[dev], THIS_MODULE, sizeof(struct snd_opl3sa2));
 -      if (card == NULL)
 -              return NULL;
 +      err = snd_card_create(index[dev], id[dev], THIS_MODULE,
 +                            sizeof(struct snd_opl3sa2), &card);
 +      if (err < 0)
 +              return err;
        strcpy(card->driver, "OPL3SA2");
-       strcpy(card->shortname, "Yamaha OPL3-SA2");
+       strcpy(card->shortname, "Yamaha OPL3-SA");
        chip = card->private_data;
        spin_lock_init(&chip->reg_lock);
        chip->irq = -1;