]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - sound/oss/soundcard.c
device create: sound: convert device_create_drvdata to device_create
[linux-2.6-omap-h63xx.git] / sound / oss / soundcard.c
index dcd8d6d2f56f39b6b821f12e503bce389996ccf4..61aaedae6b7e084f8d7359d28fc88d9e4493e490 100644 (file)
@@ -44,6 +44,7 @@
 #include <linux/smp_lock.h>
 #include <linux/module.h>
 #include <linux/mm.h>
+#include <linux/device.h>
 
 /*
  * This ought to be moved into include/asm/dma.h
@@ -560,7 +561,7 @@ static int __init oss_init(void)
 
        for (i = 0; i < ARRAY_SIZE(dev_list); i++) {
                device_create(sound_class, NULL,
-                             MKDEV(SOUND_MAJOR, dev_list[i].minor),
+                             MKDEV(SOUND_MAJOR, dev_list[i].minor), NULL,
                              "%s", dev_list[i].name);
 
                if (!dev_list[i].num)
@@ -568,8 +569,9 @@ static int __init oss_init(void)
 
                for (j = 1; j < *dev_list[i].num; j++)
                        device_create(sound_class, NULL,
-                                     MKDEV(SOUND_MAJOR, dev_list[i].minor + (j*0x10)),
-                                     "%s%d", dev_list[i].name, j);
+                                     MKDEV(SOUND_MAJOR,
+                                           dev_list[i].minor + (j*0x10)),
+                                     NULL, "%s%d", dev_list[i].name, j);
        }
 
        if (sound_nblocks >= 1024)