staging: comedi: ni_labpc_cs: convert to auto attach
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Thu, 31 Jan 2013 00:08:05 +0000 (17:08 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Feb 2013 01:29:47 +0000 (17:29 -0800)
commit42e4472ef16dbed3b1bb876b7ea6e0bdc4c111d2
treee41725e93bf72d92287e50ed9a0df821dc914027
parent89d714ce630cef6f6106f23a89458699cc595b04
staging: comedi: ni_labpc_cs: convert to auto attach

Convert this pcmcia driver to the comedi auto attach mechanism.

This allows getting rid of the "hack" needed to pass the pcmcia_device
pointer from the pcmcia_driver to the comedi_driver.

We still need the boardinfo because the ni_labpc driver uses it. But
we can get rid of the duplicate that allowed attaching with the driver
name.

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