]> git.karo-electronics.de Git - linux-beck.git/commit
staging: comedi: ni_660x: use comedi attach_pci callback
authorIan Abbott <abbotti@mev.co.uk>
Fri, 14 Sep 2012 16:34:09 +0000 (17:34 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Sep 2012 12:09:04 +0000 (05:09 -0700)
commitb64c0f51cbf5e38ffad8e2624a3416a6fa10223b
tree038ea7c13dbe69fd5660ae8bc7482b3c8ec5f69f
parentb4c9a598a7d858bbb845b9b4067c065f63abc10a
staging: comedi: ni_660x: use comedi attach_pci callback

Convert this PCI driver to use the comedi `attach_pci` callback instead
of the `attach` callback for PCI auto-configuration.  There is no need
to support manual attachment of PCI devices supported by this driver, so
remove the `attach` callback altogether.

Note that this driver still uses the list of PCI "mite" devices created
by the "mite" module.  This will be dealt with by a later patch once
dynamic allocation of "mite" structures has been implemented.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/ni_660x.c