staging: comedi: ni_pcimio: use mite_alloc()
authorIan Abbott <abbotti@mev.co.uk>
Fri, 14 Sep 2012 16:34:33 +0000 (17:34 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Sep 2012 12:09:10 +0000 (05:09 -0700)
commita5cf79e3ace423360126a4eeb5089c19c99ae060
tree1301993cc39def1b0c417f233daaecf040559e3c
parentf822a6a1a11759f0a694a4a3547c1186e1a2eaec
staging: comedi: ni_pcimio: use mite_alloc()

Allocate `struct mite_device` dynamically instead of searching for
one on the `mite_devices` list constructed by the "mite" module.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/ni_pcimio.c