diff options
author | Takashi Iwai <tiwai@suse.de> | 2014-01-29 14:38:59 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-02-14 08:14:06 +0100 |
commit | 1076879744d1b7709d5b7556cfe038039fbc01f9 (patch) | |
tree | 0aa758cb989c2763e4c4e7b0aa94fb3c280dddcc /sound/aoa/core | |
parent | 5815f5550b7f0dba3459cdb56c4977715fca3468 (diff) | |
download | linux-1076879744d1b7709d5b7556cfe038039fbc01f9.tar.gz linux-1076879744d1b7709d5b7556cfe038039fbc01f9.tar.bz2 linux-1076879744d1b7709d5b7556cfe038039fbc01f9.zip |
ALSA: ppc: 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/aoa/core')
-rw-r--r-- | sound/aoa/core/alsa.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sound/aoa/core/alsa.c b/sound/aoa/core/alsa.c index 0fa3855b4790..9913bf222073 100644 --- a/sound/aoa/core/alsa.c +++ b/sound/aoa/core/alsa.c @@ -23,13 +23,12 @@ int aoa_alsa_init(char *name, struct module *mod, struct device *dev) /* cannot be EEXIST due to usage in aoa_fabric_register */ return -EBUSY; - err = snd_card_create(index, name, mod, sizeof(struct aoa_card), - &alsa_card); + err = snd_card_new(dev, index, name, mod, sizeof(struct aoa_card), + &alsa_card); if (err < 0) return err; aoa_card = alsa_card->private_data; aoa_card->alsa_card = alsa_card; - alsa_card->dev = dev; strlcpy(alsa_card->driver, "AppleOnbdAudio", sizeof(alsa_card->driver)); strlcpy(alsa_card->shortname, name, sizeof(alsa_card->shortname)); strlcpy(alsa_card->longname, name, sizeof(alsa_card->longname)); |