staging: comedi: ni_65xx: use module_comedi_pci_driver()
authorIan Abbott <abbotti@mev.co.uk>
Fri, 14 Sep 2012 16:34:04 +0000 (17:34 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Sep 2012 12:09:03 +0000 (05:09 -0700)
commit7e661293119cff3c726c2d1d5f646ae9a1060b10
tree27d8cf76f8816325d89d7d5cef70ec9d39a314c2
parent0e5789f57a1f6f28018281fdc2f013199c7b0767
staging: comedi: ni_65xx: use module_comedi_pci_driver()

Use the macro `module_comedi_pci_driver(comedi_driver, pci_driver)` to
register the module as a Comedi PCI driver.  Rename variables and
functions that have prefix `driver_` for consistency.  Set the `name`
member of the `struct pci_driver` variable in its initializer instead of
initializing it in the module initialization function.

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