On 2012-05-11 18:07, H Hartley Sweeten wrote:
+int comedi_pci_driver_register(struct comedi_driver *comedi_driver,
+               struct pci_driver *pci_driver)
+{
+       int ret;
+
+       ret = comedi_driver_register(comedi_driver);
+       if (ret<  0)
+               return ret;
+
+       pci_driver->name = comedi_driver->driver_name;

I think it would be better if the driver modules that call this function already had pci_driver->name initialized statically.

--
-=( Ian Abbott @ MEV Ltd.    E-mail: <[email protected]>        )=-
-=( Tel: +44 (0)161 477 1898   FAX: +44 (0)161 718 3587         )=-
_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel

Reply via email to