diff options
Diffstat (limited to 'sound/isa/cs423x/cs4231.c')
-rw-r--r-- | sound/isa/cs423x/cs4231.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/isa/cs423x/cs4231.c b/sound/isa/cs423x/cs4231.c index ba9a74eff3e0..7dba07a4343a 100644 --- a/sound/isa/cs423x/cs4231.c +++ b/sound/isa/cs423x/cs4231.c | |||
@@ -95,7 +95,7 @@ static int snd_cs4231_probe(struct device *dev, unsigned int n) | |||
95 | struct snd_pcm *pcm; | 95 | struct snd_pcm *pcm; |
96 | int error; | 96 | int error; |
97 | 97 | ||
98 | error = snd_card_create(index[n], id[n], THIS_MODULE, 0, &card); | 98 | error = snd_card_new(dev, index[n], id[n], THIS_MODULE, 0, &card); |
99 | if (error < 0) | 99 | if (error < 0) |
100 | return error; | 100 | return error; |
101 | 101 | ||
@@ -135,8 +135,6 @@ static int snd_cs4231_probe(struct device *dev, unsigned int n) | |||
135 | dev_warn(dev, "MPU401 not detected\n"); | 135 | dev_warn(dev, "MPU401 not detected\n"); |
136 | } | 136 | } |
137 | 137 | ||
138 | snd_card_set_dev(card, dev); | ||
139 | |||
140 | error = snd_card_register(card); | 138 | error = snd_card_register(card); |
141 | if (error < 0) | 139 | if (error < 0) |
142 | goto out; | 140 | goto out; |