diff options
author | Takashi Iwai <tiwai@suse.de> | 2014-01-29 08:41:58 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-02-14 02:14:08 -0500 |
commit | 6e10af77143a0dda2b3631aeafda0a429917b0fe (patch) | |
tree | 510f0539ae8b6f91635432cf1f838ef6ba912b36 /sound/spi/at73c213.c | |
parent | a2fefc35a99f684b4ba15d243995170fa23bdd7e (diff) |
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>
Diffstat (limited to 'sound/spi/at73c213.c')
-rw-r--r-- | sound/spi/at73c213.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sound/spi/at73c213.c b/sound/spi/at73c213.c index 25c38afaee49..39522367897c 100644 --- a/sound/spi/at73c213.c +++ b/sound/spi/at73c213.c | |||
@@ -927,8 +927,6 @@ static int snd_at73c213_dev_init(struct snd_card *card, | |||
927 | if (retval) | 927 | if (retval) |
928 | goto out_snd_dev; | 928 | goto out_snd_dev; |
929 | 929 | ||
930 | snd_card_set_dev(card, &spi->dev); | ||
931 | |||
932 | goto out; | 930 | goto out; |
933 | 931 | ||
934 | out_snd_dev: | 932 | out_snd_dev: |
@@ -966,8 +964,8 @@ static int snd_at73c213_probe(struct spi_device *spi) | |||
966 | 964 | ||
967 | /* Allocate "card" using some unused identifiers. */ | 965 | /* Allocate "card" using some unused identifiers. */ |
968 | snprintf(id, sizeof id, "at73c213_%d", board->ssc_id); | 966 | snprintf(id, sizeof id, "at73c213_%d", board->ssc_id); |
969 | retval = snd_card_create(-1, id, THIS_MODULE, | 967 | retval = snd_card_new(&spi->dev, -1, id, THIS_MODULE, |
970 | sizeof(struct snd_at73c213), &card); | 968 | sizeof(struct snd_at73c213), &card); |
971 | if (retval < 0) | 969 | if (retval < 0) |
972 | goto out; | 970 | goto out; |
973 | 971 | ||