]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: das08: Add attach_pci() hook
authorIan Abbott <abbotti@mev.co.uk>
Thu, 24 May 2012 16:27:18 +0000 (17:27 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 Jun 2012 03:39:39 +0000 (20:39 -0700)
commit01f8a141357f22efcc5b8f4138976641275725a7
tree436240a798795fe6b5ce52d21a2baf9d573db236
parentf26823096c415d1db6885f2968c4e3a5e783d4d4
staging: comedi: das08: Add attach_pci() hook

Implement the attach_pci() hook.  This is called by
comedi_pci_auto_config() in preference to the old attach() hook and
avoids searching for the probed PCI device.  Factor out some common code
used by both the attach() and attach_pci() hooks into a couple of new
functions, das08_pci_attach_common() and das08_find_pci_board().

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