From: H Hartley Sweeten Date: Thu, 16 Aug 2012 00:32:29 +0000 (-0700) Subject: staging: comedi: contec_pci_dio: use attach_pci callback X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~75^2~912 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d02b3aa670547f307b50058b2ca1c1fab2518ed;p=pandora-kernel.git staging: comedi: contec_pci_dio: use attach_pci callback Convert this PCI driver to use the comedi PCI auto config attach mechanism by adding an attach_pci callback function. Since the driver does not require any external configuration options, disable the legacy attach by making the attach simply return -ENOSYS. This removes the need to walk to pci bus to find the pci_dev and the need for the pci_dev_put in the detach. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed