Skip to content

Commit

Permalink
ALSA: spi: Convert to snd_card_new() with a device pointer
Browse files Browse the repository at this point in the history
Also remove superfluous snd_card_set_dev() calls.

Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
tiwai committed Feb 14, 2014
1 parent a2fefc3 commit 6e10af7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions sound/spi/at73c213.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -966,8 +964,8 @@ 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,
sizeof(struct snd_at73c213), &card);
retval = snd_card_new(&spi->dev, -1, id, THIS_MODULE,
sizeof(struct snd_at73c213), &card);
if (retval < 0)
goto out;

Expand Down

0 comments on commit 6e10af7

Please sign in to comment.