staging/comedi: remove workaround for !pci_driver.name
authorPeter Huewe <peterhuewe@gmx.de>
Mon, 21 Jan 2013 20:51:57 +0000 (21:51 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Jan 2013 22:22:49 +0000 (14:22 -0800)
All pci drivers in drivers/ have the pci_driver.name field set, so we
can remove this workaround and the accompanying todo.

Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers.c

index 8b681ac7b31d2bdceba7767ab6ceee02ce6c998e..cebdd9e8670fc7238fa0e604c8a787d6a15e03ba 100644 (file)
@@ -536,10 +536,6 @@ int comedi_pci_driver_register(struct comedi_driver *comedi_driver,
        if (ret < 0)
                return ret;
 
-       /* FIXME: Remove this test after auditing all comedi pci drivers */
-       if (!pci_driver->name)
-               pci_driver->name = comedi_driver->driver_name;
-
        ret = pci_register_driver(pci_driver);
        if (ret < 0) {
                comedi_driver_unregister(comedi_driver);