summaryrefslogtreecommitdiff
path: root/sound/core/sound.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2008-07-22 07:03:34 +0400
committerGreg Kroah-Hartman <gregkh@suse.de>2008-10-16 20:24:44 +0400
commitabe9ab8f62203ced11119fb96acc3b8dd107ebc4 (patch)
treecb6d6667e6fc216efdfa5b1ba4a3e46c92798090 /sound/core/sound.c
parentd73a1a674b5383bb3b38ae3dd625504ffc623d90 (diff)
downloadlinux-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.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sound/core/sound.c b/sound/core/sound.c
index c0685e2f0afa..44a69bb8d4f0 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);