[PATCH] staging: comedi: refactor ni_pcimio driver and use module_comedi_pci_driver

Ian Abbott abbotti at mev.co.uk
Tue May 15 11:28:56 UTC 2012


On 2012-05-12 00:51, H Hartley Sweeten wrote:
> +static struct comedi_driver ni_pcimio_driver = {
> +	.driver_name	= "ni_pcimio",

The original used the DRV_NAME macro expanding to "ni_pcimio" here...

> +static struct pci_driver ni_pcimio_pci_driver = {
> +	.name		= "ni_pcimio",

... which could also be used here.

(I realize this is a bit late as the patch is already committed!)

-- 
-=( Ian Abbott @ MEV Ltd.    E-mail: <abbotti at mev.co.uk>        )=-
-=( Tel: +44 (0)161 477 1898   FAX: +44 (0)161 718 3587         )=-



More information about the devel mailing list