device create: sound: convert device_create_drvdata to device_create
Now that device_create() has been audited, rename things back to the original call to be sane. Cc: Jaroslav Kysela <perex@perex.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
@@ -220,9 +220,8 @@ static int sound_insert_unit(struct sound_unit **list, const struct file_operati
|
||||
else
|
||||
sprintf(s->name, "sound/%s%d", name, r / SOUND_STEP);
|
||||
|
||||
device_create_drvdata(sound_class, dev,
|
||||
MKDEV(SOUND_MAJOR, s->unit_minor),
|
||||
NULL, s->name+6);
|
||||
device_create(sound_class, dev, MKDEV(SOUND_MAJOR, s->unit_minor),
|
||||
NULL, s->name+6);
|
||||
return r;
|
||||
|
||||
fail:
|
||||
|
Reference in New Issue
Block a user