Commit 2a4360aa authored by Hiroshi DOYU's avatar Hiroshi DOYU Committed by Tony Lindgren

DSPGW: Fix build error for device_create()

Ideally, the contents mamagement should be handled by drv_data instead
of homebrewed array.
Signed-off-by: default avatarHiroshi DOYU <Hiroshi.DOYU@nokia.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 1b1c51f2
...@@ -110,9 +110,8 @@ int __init dsp_ctl_core_init(void) ...@@ -110,9 +110,8 @@ int __init dsp_ctl_core_init(void)
dsp_ctl_class = class_create(THIS_MODULE, "dspctl"); dsp_ctl_class = class_create(THIS_MODULE, "dspctl");
for (i = 0; i < ARRAY_SIZE(dev_list); i++) { for (i = 0; i < ARRAY_SIZE(dev_list); i++) {
device_create(dsp_ctl_class, NULL, device_create(dsp_ctl_class, NULL,
MKDEV(OMAP_DSP_CTL_MAJOR, MKDEV(OMAP_DSP_CTL_MAJOR, dev_list[i].minor),
dev_list[i].minor), NULL, dev_list[i].devname);
dev_list[i].devname);
} }
return 0; return 0;
......
...@@ -1762,7 +1762,7 @@ static int taskdev_init(struct taskdev *dev, char *name, unsigned char minor) ...@@ -1762,7 +1762,7 @@ static int taskdev_init(struct taskdev *dev, char *name, unsigned char minor)
goto fail_create_proclist; goto fail_create_proclist;
task_dev = device_create(dsp_task_class, NULL, 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); "dsptask%d", (int)minor);
if (unlikely(IS_ERR(task_dev))) { if (unlikely(IS_ERR(task_dev))) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment