summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorH Hartley Sweeten <hartleys@visionengravers.com>2012-10-25 17:24:39 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-10-26 09:18:17 -0700
commitfbbeddfa91df61df53aa6fd33f4f290e6d199a87 (patch)
tree0de0de75dfc0a561c590be5f87c3075990271eaa /include
parent0473c02a8b560e7a59af4a2d5132ef0ade0f6a33 (diff)
staging: comedi: dt3000: convert driver to attach_pci
Convert this driver to use the comedi PCI auto config mechanism by adding an attach_pci callback. Since this driver requires no extra configuration options, and the attach callback is now optional, remove it. Remove the kernel noise that is output when the attach fails for various reasons. Use the found 'dev->board_name' for the resource name passed to comedi_pci_enable() and request_irq(). Pass on the error returned from request_irq() instead of returning -EINVAL on error. Since this driver no longer walks the pci bus to find the pci_dev, remove 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