]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - sound/core/init.c
device create: sound: convert device_create to device_create_drvdata
[linux-2.6-omap-h63xx.git] / sound / core / init.c
index 5c254d498ae094d452bb0c85a143f468eaedde0a..df46bbc25dc2da7dccf2872abbae76837693e3ba 100644 (file)
@@ -548,8 +548,9 @@ int snd_card_register(struct snd_card *card)
        snd_assert(card != NULL, return -EINVAL);
 #ifndef CONFIG_SYSFS_DEPRECATED
        if (!card->card_dev) {
-               card->card_dev = device_create(sound_class, card->dev, 0,
-                                              "card%i", card->number);
+               card->card_dev = device_create_drvdata(sound_class, card->dev,
+                                                      MKDEV(0, 0), NULL,
+                                                      "card%i", card->number);
                if (IS_ERR(card->card_dev))
                        card->card_dev = NULL;
        }