projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2fefc3
)
ALSA: spi: Convert to snd_card_new() with a device pointer
author
Takashi Iwai
<tiwai@suse.de>
Wed, 29 Jan 2014 13:41:58 +0000
(14:41 +0100)
committer
Takashi Iwai
<tiwai@suse.de>
Fri, 14 Feb 2014 07:14:08 +0000
(08:14 +0100)
Also remove superfluous snd_card_set_dev() calls.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/spi/at73c213.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/spi/at73c213.c
b/sound/spi/at73c213.c
index 25c38afaee4900463692c93b4182db82f93b36bd..39522367897caedb4be23f1f92579d31a4d1fe38 100644
(file)
--- a/
sound/spi/at73c213.c
+++ b/
sound/spi/at73c213.c
@@
-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,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;