diff options
author | Takashi Iwai <tiwai@suse.de> | 2014-01-29 07:03:56 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-02-12 04:58:21 -0500 |
commit | 4323cc4d5b25b5138c0791e3c7d3b09bd7062b49 (patch) | |
tree | 864a8549eae025d2108cefbb19bc61e18a9bc659 /sound/isa/msnd/msnd_pinnacle.c | |
parent | 5872f3f621f9f65342583a85ec93b00c0a697eda (diff) |
ALSA: isa: 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/isa/msnd/msnd_pinnacle.c')
-rw-r--r-- | sound/isa/msnd/msnd_pinnacle.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/sound/isa/msnd/msnd_pinnacle.c b/sound/isa/msnd/msnd_pinnacle.c index 0a90bd6ae232..5016bf957f51 100644 --- a/sound/isa/msnd/msnd_pinnacle.c +++ b/sound/isa/msnd/msnd_pinnacle.c | |||
@@ -905,12 +905,11 @@ static int snd_msnd_isa_probe(struct device *pdev, unsigned int idx) | |||
905 | return -ENODEV; | 905 | return -ENODEV; |
906 | } | 906 | } |
907 | 907 | ||
908 | err = snd_card_create(index[idx], id[idx], THIS_MODULE, | 908 | err = snd_card_new(pdev, index[idx], id[idx], THIS_MODULE, |
909 | sizeof(struct snd_msnd), &card); | 909 | sizeof(struct snd_msnd), &card); |
910 | if (err < 0) | 910 | if (err < 0) |
911 | return err; | 911 | return err; |
912 | 912 | ||
913 | snd_card_set_dev(card, pdev); | ||
914 | chip = card->private_data; | 913 | chip = card->private_data; |
915 | chip->card = card; | 914 | chip->card = card; |
916 | 915 | ||
@@ -1122,14 +1121,14 @@ static int snd_msnd_pnp_detect(struct pnp_card_link *pcard, | |||
1122 | * Create a new ALSA sound card entry, in anticipation | 1121 | * Create a new ALSA sound card entry, in anticipation |
1123 | * of detecting our hardware ... | 1122 | * of detecting our hardware ... |
1124 | */ | 1123 | */ |
1125 | ret = snd_card_create(index[idx], id[idx], THIS_MODULE, | 1124 | ret = snd_card_new(&pcard->card->dev, |
1126 | sizeof(struct snd_msnd), &card); | 1125 | index[idx], id[idx], THIS_MODULE, |
1126 | sizeof(struct snd_msnd), &card); | ||
1127 | if (ret < 0) | 1127 | if (ret < 0) |
1128 | return ret; | 1128 | return ret; |
1129 | 1129 | ||
1130 | chip = card->private_data; | 1130 | chip = card->private_data; |
1131 | chip->card = card; | 1131 | chip->card = card; |
1132 | snd_card_set_dev(card, &pcard->card->dev); | ||
1133 | 1132 | ||
1134 | /* | 1133 | /* |
1135 | * Read the correct parameters off the ISA PnP bus ... | 1134 | * Read the correct parameters off the ISA PnP bus ... |