From: Takashi Iwai Date: Mon, 23 Mar 2009 23:36:13 +0000 (+0100) Subject: Merge branch 'topic/isa-misc' into for-linus X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=fa15fdeffa3977b17882f485547e65296cf0bd30;p=linux-beck.git Merge branch 'topic/isa-misc' into for-linus --- fa15fdeffa3977b17882f485547e65296cf0bd30 diff --cc sound/isa/opl3sa2.c index 9c5fce31f06b,3f0b877bc8b5..ef95279da7a3 --- a/sound/isa/opl3sa2.c +++ b/sound/isa/opl3sa2.c @@@ -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;