diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2008-07-22 03:03:34 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-10-16 16:24:44 (GMT) |
commit | abe9ab8f62203ced11119fb96acc3b8dd107ebc4 (patch) | |
tree | cb6d6667e6fc216efdfa5b1ba4a3e46c92798090 /sound/core/sound.c | |
parent | d73a1a674b5383bb3b38ae3dd625504ffc623d90 (diff) | |
download | linux-fsl-qoriq-abe9ab8f62203ced11119fb96acc3b8dd107ebc4.tar.xz |
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>
Diffstat (limited to 'sound/core/sound.c')
-rw-r--r-- | sound/core/sound.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sound/core/sound.c b/sound/core/sound.c index c0685e2..44a69bb 100644 --- a/sound/core/sound.c +++ b/sound/core/sound.c @@ -274,9 +274,8 @@ int snd_register_device_for_dev(int type, struct snd_card *card, int dev, return minor; } snd_minors[minor] = preg; - preg->dev = device_create_drvdata(sound_class, device, - MKDEV(major, minor), - private_data, "%s", name); + preg->dev = device_create(sound_class, device, MKDEV(major, minor), + private_data, "%s", name); if (IS_ERR(preg->dev)) { snd_minors[minor] = NULL; mutex_unlock(&sound_mutex); |