staging: comedi: cb_pcimdas: use attach_pci callback
authorH Hartley Sweeten <hartleys@visionengravers.com>
Fri, 17 Aug 2012 02:47:05 +0000 (19:47 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Aug 2012 15:14:32 +0000 (08:14 -0700)
commit2d069fbed1fa367e5e5f59b6723898b92b3b80ba
tree1ff8fc0efd0fc4add0a25d0951f3a02cacd189c3
parent2682b2dc46d30cad83c880645b57fbce46ab35fa
staging: comedi: cb_pcimdas: 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/cb_pcimdas.c