From: Ian Abbott Date: Fri, 2 Nov 2012 19:17:57 +0000 (+0000) Subject: staging: comedi: cb_pcidas64: use auto_attach method X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~84^2~616 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b91524ee48771586b99bfbed9d4607c3e407d7cb;p=pandora-kernel.git staging: comedi: cb_pcidas64: use auto_attach method This driver does not need to support manual attachment of supported PCI devices. Replace the `attach()` hook with an `auto_attach()` hook. This will be called via `comedi_pci_auto_config()` at PCI probe time. The `auto_attach()` calls new function `cb_pcidas64_find_pci_board()` to find the correct entry in `pcidas64_boards[]` for the PCI device. This driver no longer increments the PCI reference count during attachment, so remove the call to `pci_dev_put()` when detaching the device. Signed-off-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed