diff options
Diffstat (limited to 'sound/sound_core.c')
-rw-r--r-- | sound/sound_core.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sound/sound_core.c b/sound/sound_core.c index 4ae07e236b36..faef87a9bc3f 100644 --- a/sound/sound_core.c +++ b/sound/sound_core.c | |||
@@ -220,9 +220,8 @@ static int sound_insert_unit(struct sound_unit **list, const struct file_operati | |||
220 | else | 220 | else |
221 | sprintf(s->name, "sound/%s%d", name, r / SOUND_STEP); | 221 | sprintf(s->name, "sound/%s%d", name, r / SOUND_STEP); |
222 | 222 | ||
223 | device_create_drvdata(sound_class, dev, | 223 | device_create(sound_class, dev, MKDEV(SOUND_MAJOR, s->unit_minor), |
224 | MKDEV(SOUND_MAJOR, s->unit_minor), | 224 | NULL, s->name+6); |
225 | NULL, s->name+6); | ||
226 | return r; | 225 | return r; |
227 | 226 | ||
228 | fail: | 227 | fail: |