提交 37fbb4ac 编写于 作者: P Peter Huewe 提交者: Greg Kroah-Hartman

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: NPeter Huewe <peterhuewe@gmx.de>
Reviewed-by: NH Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 49d2dbee
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册