staging: comedi: ni_mio_cs: convert to auto attach
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Thu, 31 Jan 2013 00:38:02 +0000 (17:38 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Feb 2013 01:29:47 +0000 (17:29 -0800)
commit42d1aeea844874961af00621f0a5584aa9b9e1a5
treef4615fc17c6bc0b87e5cc34d8e618c68c5299996
parent42e4472ef16dbed3b1bb876b7ea6e0bdc4c111d2
staging: comedi: ni_mio_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 ni_mio_common.c uses it. Cleanup
ni_getboardtype() so it returns a pointer to the boardinto instead
of the index.

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