mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-25 21:54:06 +08:00
staging/comedi: remove workaround for !pci_driver.name
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>
This commit is contained in:
parent
49d2dbee8b
commit
37fbb4acda
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user