staging: comedi: me_daq: use attach_pci callback
authorH Hartley Sweeten <hartleys@visionengravers.com>
Wed, 19 Sep 2012 23:21:49 +0000 (16:21 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Sep 2012 16:24:17 +0000 (09:24 -0700)
commit94174847ea41b1c2a44d997f2850530fb33f41cd
treea3f9d40980fcd0f142f0727658966de0b3cb04ee
parent1e12ca3407850641fc72adb620eee8a8e6dd8c90
staging: comedi: me_daq: 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.

Also, make the boardinfo 'name' unique for the different board types.
Use this name when requesting the PCI resources. Change the printk
at the end of the attach into a dev_info.

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/me_daq.c