]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
DSPGW: Fix build error for device_create()
authorHiroshi DOYU <Hiroshi.DOYU@nokia.com>
Tue, 12 Aug 2008 07:11:53 +0000 (10:11 +0300)
committerTony Lindgren <tony@atomide.com>
Tue, 12 Aug 2008 11:05:01 +0000 (14:05 +0300)
Ideally, the contents mamagement should be handled by drv_data instead
of homebrewed array.

Signed-off-by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/dsp/dspgateway/dsp_ctl_core.c
drivers/dsp/dspgateway/task.c

index 3c135728dc729115794c519ec0ba80fa41c5257a..25954bba9c8c6ad52fa6fb514dd6d987c13e6ad7 100644 (file)
@@ -110,9 +110,8 @@ int __init dsp_ctl_core_init(void)
        dsp_ctl_class = class_create(THIS_MODULE, "dspctl");
        for (i = 0; i < ARRAY_SIZE(dev_list); i++) {
                device_create(dsp_ctl_class, NULL,
-                                   MKDEV(OMAP_DSP_CTL_MAJOR,
-                                         dev_list[i].minor),
-                                   dev_list[i].devname);
+                             MKDEV(OMAP_DSP_CTL_MAJOR, dev_list[i].minor),
+                             NULL, dev_list[i].devname);
        }
 
        return 0;
index 4d7dcdd2658c01c7cfe8ffc7f50f72707e56f423..ab189349507d95621151d0ecf19ccfbb5673f535 100644 (file)
@@ -1762,7 +1762,7 @@ static int taskdev_init(struct taskdev *dev, char *name, unsigned char minor)
                goto fail_create_proclist;
 
        task_dev = device_create(dsp_task_class, NULL,
-                                MKDEV(OMAP_DSP_TASK_MAJOR, minor),
+                                MKDEV(OMAP_DSP_TASK_MAJOR, minor), NULL,
                                 "dsptask%d", (int)minor);
 
        if (unlikely(IS_ERR(task_dev))) {