From: Hiroshi DOYU Date: Tue, 12 Aug 2008 07:11:53 +0000 (+0300) Subject: DSPGW: Fix build error for device_create() X-Git-Tag: v2.6.27-omap1~322 X-Git-Url: http://www.pilppa.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=2a4360aaa8fef3c69a6dab515b0d310087794f4d;p=linux-2.6-omap-h63xx.git DSPGW: Fix build error for device_create() Ideally, the contents mamagement should be handled by drv_data instead of homebrewed array. Signed-off-by: Hiroshi DOYU Signed-off-by: Tony Lindgren --- diff --git a/drivers/dsp/dspgateway/dsp_ctl_core.c b/drivers/dsp/dspgateway/dsp_ctl_core.c index 3c135728dc7..25954bba9c8 100644 --- a/drivers/dsp/dspgateway/dsp_ctl_core.c +++ b/drivers/dsp/dspgateway/dsp_ctl_core.c @@ -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; diff --git a/drivers/dsp/dspgateway/task.c b/drivers/dsp/dspgateway/task.c index 4d7dcdd2658..ab189349507 100644 --- a/drivers/dsp/dspgateway/task.c +++ b/drivers/dsp/dspgateway/task.c @@ -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))) {