Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ALSA: spi: Convert to snd_card_new() with a device pointer

Also remove superfluous snd_card_set_dev() calls.

Signed-off-by: Takashi Iwai <tiwai@suse.de>

+2 -4
+2 -4
sound/spi/at73c213.c
··· 927 927 if (retval) 928 928 goto out_snd_dev; 929 929 930 - snd_card_set_dev(card, &spi->dev); 931 - 932 930 goto out; 933 931 934 932 out_snd_dev: ··· 964 966 965 967 /* Allocate "card" using some unused identifiers. */ 966 968 snprintf(id, sizeof id, "at73c213_%d", board->ssc_id); 967 - retval = snd_card_create(-1, id, THIS_MODULE, 968 - sizeof(struct snd_at73c213), &card); 969 + retval = snd_card_new(&spi->dev, -1, id, THIS_MODULE, 970 + sizeof(struct snd_at73c213), &card); 969 971 if (retval < 0) 970 972 goto out; 971 973