|
@@ -920,7 +920,7 @@ static int snd_sgio2audio_probe(struct platform_device *pdev)
|
|
|
struct snd_sgio2audio *chip;
|
|
|
int err;
|
|
|
|
|
|
- err = snd_card_create(index, id, THIS_MODULE, 0, &card);
|
|
|
+ err = snd_card_new(&pdev->dev, index, id, THIS_MODULE, 0, &card);
|
|
|
if (err < 0)
|
|
|
return err;
|
|
|
|
|
@@ -929,7 +929,6 @@ static int snd_sgio2audio_probe(struct platform_device *pdev)
|
|
|
snd_card_free(card);
|
|
|
return err;
|
|
|
}
|
|
|
- snd_card_set_dev(card, &pdev->dev);
|
|
|
|
|
|
err = snd_sgio2audio_new_pcm(chip);
|
|
|
if (err < 0) {
|