]> git.karo-electronics.de Git - karo-tx-linux.git/commit
staging: comedi: refactor the adl_pci6208 driver to remove the forward declarations
authorH Hartley Sweeten <hartleys@visionengravers.com>
Mon, 23 Apr 2012 22:06:21 +0000 (15:06 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Apr 2012 18:38:36 +0000 (11:38 -0700)
commitc8d87bcc2263401e60c08611e16e6a6481f29ef4
treef3be8c9f36864ce7914abdc1db4c98abd974bb08
parenta10a5d6f62b7b08350e7f0fb3b5331abc51ba492
staging: comedi: refactor the adl_pci6208 driver to remove the forward declarations

Move the module_init/module_exit routines and variables to the
end of the source as is more typically done with other drivers.
Then rearrange the attach/detach and probe/remove functions,
this removes the need for all the forward declarations.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Cc: Mori Hess <fmhess@users.sourceforge.net>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/adl_pci6208.c