staging: comedi: cb_pcimdda: cleanup pci probe
authorH Hartley Sweeten <hartleys@visionengravers.com>
Fri, 17 Aug 2012 02:48:56 +0000 (19:48 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Aug 2012 15:14:33 +0000 (08:14 -0700)
commitb41bf58f3a088008d856b02faedfdf23167833a2
treeeb7f007fba61204f3a86a83f943fbbe0adfb1ed4
parentd1438d4158ed9650e8beffb4eac22e6ae62a0200
staging: comedi: cb_pcimdda: cleanup pci probe

Make cb_pcimdda_probe() return the pointer to the found pci_dev
and move the comedi_pci_enable() call into the 'attach' function.

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_pcimdda.c