staging: comedi: dt3000: move the setup_pci() code into the attach
authorH Hartley Sweeten <hartleys@visionengravers.com>
Thu, 19 Jul 2012 01:58:07 +0000 (18:58 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jul 2012 23:51:36 +0000 (16:51 -0700)
commit5512a35b38f9cafc217ad123f9e8eea12c585208
tree28b7c8f93661154ef3da01743132e1b187b65e92
parent606f1295cfe8fd3fe8b4e4f7ca393a5db5e89e44
staging: comedi: dt3000: move the setup_pci() code into the attach

The setup_pci() function simply calls comedi_pci_enable() to enable
the device then ioremaps the pci address. Move the code directly
into the attach function as is more typical for the comedi pci
drivers.

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