diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2008-07-21 23:03:34 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-10-16 12:24:44 -0400 |
commit | abe9ab8f62203ced11119fb96acc3b8dd107ebc4 (patch) | |
tree | cb6d6667e6fc216efdfa5b1ba4a3e46c92798090 /sound/core | |
parent | d73a1a674b5383bb3b38ae3dd625504ffc623d90 (diff) |
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')
-rw-r--r-- | sound/core/init.c | 6 | ||||
-rw-r--r-- | sound/core/sound.c | 5 |
2 files changed, 5 insertions, 6 deletions
diff --git a/sound/core/init.c b/sound/core/init.c index 8af467df9245..ef2352c2e451 100644 --- a/sound/core/init.c +++ b/sound/core/init.c | |||
@@ -549,9 +549,9 @@ int snd_card_register(struct snd_card *card) | |||
549 | return -EINVAL; | 549 | return -EINVAL; |
550 | #ifndef CONFIG_SYSFS_DEPRECATED | 550 | #ifndef CONFIG_SYSFS_DEPRECATED |
551 | if (!card->card_dev) { | 551 | if (!card->card_dev) { |
552 | card->card_dev = device_create_drvdata(sound_class, card->dev, | 552 | card->card_dev = device_create(sound_class, card->dev, |
553 | MKDEV(0, 0), NULL, | 553 | MKDEV(0, 0), NULL, |
554 | "card%i", card->number); | 554 | "card%i", card->number); |
555 | if (IS_ERR(card->card_dev)) | 555 | if (IS_ERR(card->card_dev)) |
556 | card->card_dev = NULL; | 556 | card->card_dev = NULL; |
557 | } | 557 | } |
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, | |||
274 | return minor; | 274 | return minor; |
275 | } | 275 | } |
276 | snd_minors[minor] = preg; | 276 | snd_minors[minor] = preg; |
277 | preg->dev = device_create_drvdata(sound_class, device, | 277 | preg->dev = device_create(sound_class, device, MKDEV(major, minor), |
278 | MKDEV(major, minor), | 278 | private_data, "%s", name); |
279 | private_data, "%s", name); | ||
280 | if (IS_ERR(preg->dev)) { | 279 | if (IS_ERR(preg->dev)) { |
281 | snd_minors[minor] = NULL; | 280 | snd_minors[minor] = NULL; |
282 | mutex_unlock(&sound_mutex); | 281 | mutex_unlock(&sound_mutex); |