staging: comedi: daqboard2000: use attach_pci callback
authorH Hartley Sweeten <hartleys@visionengravers.com>
Wed, 19 Sep 2012 01:47:15 +0000 (18:47 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Sep 2012 08:41:43 +0000 (09:41 +0100)
commit33214ce1ebdabf134e3064ca4fbdecaecefdf370
tree9e5303b8f1ff07e0921e6dcd74f4369b3907d859
parent63ad597e2d1da6472f381f9709bc87eecbe30328
staging: comedi: daqboard2000: 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/daqboard2000.c