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>
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;
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))) {