From: David Schleef Date: Sat, 12 Feb 2000 02:24:31 +0000 (+0000) Subject: Compilation fixes for RTLinux-2.1, recent comedi changes X-Git-Tag: r0_7_40~49 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b59ef96f61c2e1339c7cee0f60d059578c6e70a1;p=comedi.git Compilation fixes for RTLinux-2.1, recent comedi changes --- diff --git a/comedi/realtime/vd_dds.c b/comedi/realtime/vd_dds.c index 17fc8963..5deb1d12 100644 --- a/comedi/realtime/vd_dds.c +++ b/comedi/realtime/vd_dds.c @@ -35,18 +35,18 @@ #include #include #ifdef CONFIG_COMEDI_RTL_V1 -#include +#include #endif #ifdef CONFIG_COMEDI_RTL -#include -#include -#include +#include +#include +#include #endif static int dds_attach(comedi_device *dev,comedi_devconfig *it); static int dds_detach(comedi_device *dev); comedi_driver driver_={ - driver_name: "dds", + driver_name: "dds", attach: dds_attach, detach: dds_detach, }; @@ -156,7 +156,7 @@ static int dds_ao_mode2(comedi_device *dev,comedi_subdevice *s,comedi_trig *it) ts.tv_nsec=it->trigvar; period=timespec_to_RTIME(ts); - rt_task_init(&devpriv->rt_task,dds_ai_task_func,(int)dev,3000,4); + rt_task_init(&devpriv->rt_task,dds_ao_task_func,(int)dev,3000,4); now=rt_get_time(); rt_task_make_periodic(&devpriv->rt_task,now+period,period); @@ -183,12 +183,8 @@ int dds_attach(comedi_device *dev,comedi_devconfig *it) int ret; comedi_subdevice *s; - if(strcmp("dds",it->board_name)) - return 0; - printk("comedi%d: dds: ",dev->minor); dev->board_name="dds"; - dev->driver_name="dds"; dev->n_subdevices=1; if((ret=alloc_subdevices(dev))<0) diff --git a/comedi/realtime/vd_timer.c b/comedi/realtime/vd_timer.c index 517d2d58..bbee0499 100644 --- a/comedi/realtime/vd_timer.c +++ b/comedi/realtime/vd_timer.c @@ -36,14 +36,14 @@ #include #ifdef CONFIG_COMEDI_RTL_V1 -#include +#include #include #endif #ifdef CONFIG_COMEDI_RTL -#include -#include -#include +#include +#include +#include #endif static int timer_attach(comedi_device *dev,comedi_devconfig *it);