]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: das800: move module_{init, exit} to end of file
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 23 Apr 2013 01:31:47 +0000 (18:31 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Apr 2013 17:41:37 +0000 (10:41 -0700)
commit4331efa2d068e7fae25d7dba5f7eb42ecf666b63
tree46939f4170e8195518964f8c815486340c666c0f
parent700c4e4778d235ec5eb6b469c57810acdb8666c5
staging: comedi: das800: move module_{init, exit} to end of file

The module_comedi_driver() macro provides the module_{init.exit}
code for this driver. Move the macro call and the comedi_driver
declaration to the end of the file. This also removes the need
for the das800_attach() forward declaration.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/das800.c