staging: comedi: adv_pci_dio: use attach_pci callback
authorH Hartley Sweeten <hartleys@visionengravers.com>
Sat, 18 Aug 2012 01:19:36 +0000 (18:19 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 4 Sep 2012 18:20:37 +0000 (11:20 -0700)
commite5200165a9f34d75150e9de7b40dfcf8359bb5c7
tree9388ad7bac7808e05ee0c3ab46715e8360624e97
parent242f5223aefe577426324c9d7e29775a0e492bb7
staging: comedi: adv_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, and
the legacy 'attach' callback is now optional, remove it.

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>
drivers/staging/comedi/drivers/adv_pci_dio.c