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:
@@ -549,9 +549,9 @@ int snd_card_register(struct snd_card *card)
|
||||
return -EINVAL;
|
||||
#ifndef CONFIG_SYSFS_DEPRECATED
|
||||
if (!card->card_dev) {
|
||||
card->card_dev = device_create_drvdata(sound_class, card->dev,
|
||||
MKDEV(0, 0), NULL,
|
||||
"card%i", card->number);
|
||||
card->card_dev = device_create(sound_class, card->dev,
|
||||
MKDEV(0, 0), NULL,
|
||||
"card%i", card->number);
|
||||
if (IS_ERR(card->card_dev))
|
||||
card->card_dev = NULL;
|
||||
}
|
||||
|
Reference in New Issue
Block a user