summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorH Hartley Sweeten <hartleys@visionengravers.com>2012-08-15 17:32:29 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-08-16 11:30:41 -0700
commit8d02b3aa670547f307b50058b2ca1c1fab2518ed (patch)
tree80c465578ea6769782549f0ff7fedf11e496fe86 /include
parent3256837311344ef7efa41c717a280f95207e5140 (diff)
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 <hsweeten@visionengravers.com> Cc: Ian Abbott <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions