]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: don't call attach_pci handler
authorIan Abbott <abbotti@mev.co.uk>
Wed, 14 Nov 2012 13:10:35 +0000 (13:10 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 Nov 2012 00:25:47 +0000 (16:25 -0800)
commit0b956620c18db54469284400aa847b3be2eb64be
tree1cfa2f962890b0416cadbba8d7115c931d530ac5
parenta2e82ba6ff6c2f896b1cef620949b7a1f3c8eec7
staging: comedi: don't call attach_pci handler

All the Comedi drivers that call `comedi_pci_auto_config()` have
replaced the `attach_pci()` handler in their `struct comedi_driver` with
a `auto_attach()` handler, so there is no need to check for the
existence of the `attach_pci()` handler any more.  Remove this check and
the code that calls it.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers.c