diff options
author | Takashi Iwai <tiwai@suse.de> | 2014-01-29 08:20:19 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-02-12 05:17:52 -0500 |
commit | 60c5772b50fe8ce947685cfe3a80b9bf6ea92831 (patch) | |
tree | ad2d8a112bd708ff58f96ccb2ec7b15d88676379 /sound/pci/via82xx.c | |
parent | 4323cc4d5b25b5138c0791e3c7d3b09bd7062b49 (diff) |
ALSA: pci: 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/pci/via82xx.c')
-rw-r--r-- | sound/pci/via82xx.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/pci/via82xx.c b/sound/pci/via82xx.c index 5ae6f042c586..20d2eeeecf47 100644 --- a/sound/pci/via82xx.c +++ b/sound/pci/via82xx.c | |||
@@ -2441,8 +2441,6 @@ static int snd_via82xx_create(struct snd_card *card, | |||
2441 | * We call pci_set_master here because it does not hurt. */ | 2441 | * We call pci_set_master here because it does not hurt. */ |
2442 | pci_set_master(pci); | 2442 | pci_set_master(pci); |
2443 | 2443 | ||
2444 | snd_card_set_dev(card, &pci->dev); | ||
2445 | |||
2446 | *r_via = chip; | 2444 | *r_via = chip; |
2447 | return 0; | 2445 | return 0; |
2448 | } | 2446 | } |
@@ -2544,7 +2542,7 @@ static int snd_via82xx_probe(struct pci_dev *pci, | |||
2544 | unsigned int i; | 2542 | unsigned int i; |
2545 | int err; | 2543 | int err; |
2546 | 2544 | ||
2547 | err = snd_card_create(index, id, THIS_MODULE, 0, &card); | 2545 | err = snd_card_new(&pci->dev, index, id, THIS_MODULE, 0, &card); |
2548 | if (err < 0) | 2546 | if (err < 0) |
2549 | return err; | 2547 | return err; |
2550 | 2548 | ||