diff options
| author | H Hartley Sweeten <hartleys@visionengravers.com> | 2012-08-14 18:23:49 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-08-15 15:25:34 -0700 |
| commit | 690e839fc4915a372f2338b148c36d8949822253 (patch) | |
| tree | f9a8b197514fcd9301638f9397d4524d56170484 /include/linux/stackprotector.h | |
| parent | af0677c14e990e64bd6571be691e0bebd82a5dc0 (diff) | |
staging: comedi: dnya_pci10xx: 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 the 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/linux/stackprotector.h')
0 files changed, 0 insertions, 0 deletions
