Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6e10af77 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

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



Also remove superfluous snd_card_set_dev() calls.

Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent a2fefc35
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -927,8 +927,6 @@ static int snd_at73c213_dev_init(struct snd_card *card,
	if (retval)
		goto out_snd_dev;

	snd_card_set_dev(card, &spi->dev);

	goto out;

out_snd_dev:
@@ -966,7 +964,7 @@ static int snd_at73c213_probe(struct spi_device *spi)

	/* Allocate "card" using some unused identifiers. */
	snprintf(id, sizeof id, "at73c213_%d", board->ssc_id);
	retval = snd_card_create(-1, id, THIS_MODULE,
	retval = snd_card_new(&spi->dev, -1, id, THIS_MODULE,
			      sizeof(struct snd_at73c213), &card);
	if (retval < 0)
		goto out;