From: David Schleef Date: Tue, 23 Jan 2001 18:31:21 +0000 (+0000) Subject: random cleanup X-Git-Tag: r0_7_56~57 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=72268080d0c57d732545eacc1542ec58d948ea60;p=comedi.git random cleanup --- diff --git a/comedi/drivers/dt282x.c b/comedi/drivers/dt282x.c index b23a0793..b5b976b7 100644 --- a/comedi/drivers/dt282x.c +++ b/comedi/drivers/dt282x.c @@ -346,6 +346,7 @@ comedi_driver driver_dt282x={ detach: dt282x_detach, recognize: dt282x_recognize, }; +COMEDI_INITCLEANUP(driver_dt282x); static void free_resources(comedi_device *dev); static int prep_ai_dma(comedi_device * dev,int chan,int size); @@ -1564,21 +1565,6 @@ static int dt282x_detach(comedi_device * dev) return 0; } -#ifdef MODULE -int init_module(void) -{ - comedi_driver_register(&driver_dt282x); - - return 0; -} - -void cleanup_module(void) -{ - comedi_driver_unregister(&driver_dt282x); -} - -#endif - static int dt282x_grab_dma(comedi_device *dev,int dma1,int dma2) { int ret;