From: Ian Abbott Date: Fri, 14 Sep 2012 16:34:12 +0000 (+0100) Subject: staging: comedi: ni_labpc: use module_comedi_pci_driver() X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~75^2~215 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3faeeecbc85c7f4a2867bcdc65b8a598e2f4aa83;p=pandora-kernel.git staging: comedi: ni_labpc: 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 if the module supports PCI devices, otherwise use `module_comedi_driver(comedi_driver)` to register it as an ordinary Comedi 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 Reviewed-by: H Hartley Sweeten Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed