ALSA: arm: 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>
このコミットが含まれているのは:
@@ -899,8 +899,8 @@ static struct aaci *aaci_init_card(struct amba_device *dev)
|
||||
struct snd_card *card;
|
||||
int err;
|
||||
|
||||
err = snd_card_create(SNDRV_DEFAULT_IDX1, SNDRV_DEFAULT_STR1,
|
||||
THIS_MODULE, sizeof(struct aaci), &card);
|
||||
err = snd_card_new(&dev->dev, SNDRV_DEFAULT_IDX1, SNDRV_DEFAULT_STR1,
|
||||
THIS_MODULE, sizeof(struct aaci), &card);
|
||||
if (err < 0)
|
||||
return NULL;
|
||||
|
||||
@@ -1055,8 +1055,6 @@ static int aaci_probe(struct amba_device *dev,
|
||||
if (ret)
|
||||
goto out;
|
||||
|
||||
snd_card_set_dev(aaci->card, &dev->dev);
|
||||
|
||||
ret = snd_card_register(aaci->card);
|
||||
if (ret == 0) {
|
||||
dev_info(&dev->dev, "%s\n", aaci->card->longname);
|
||||
|
新しいイシューから参照
ユーザーをブロックする