staging: comedi: addi_common: move module init code to EOF
authorH Hartley Sweeten <hartleys@visionengravers.com>
Mon, 29 Oct 2012 23:51:16 +0000 (16:51 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 Oct 2012 17:47:32 +0000 (10:47 -0700)
commit3974c5c08d50fb3a23ec825186a60535264142e8
tree6dd83c575df0129ebfb20f09a724489eeddb21b4
parent65c7815a4c03019ce3a65766e3ff7a2894814c98
staging: comedi: addi_common: move module init code to EOF

Move the module_{init,exit} code and associated variables to the end
of the file.

Use module_comedi_pci_driver() to remove the module init boilerplate.

For aesthetic reasons, rename the comedi_driver and pci_driver from
driver_* to *_driver.

Remove the forward declarations for i_ADDI_{Attach,Detach}.

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