staging: comedi: ni_pcidio: use mite_alloc()
authorIan Abbott <abbotti@mev.co.uk>
Fri, 14 Sep 2012 16:34:32 +0000 (17:34 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Sep 2012 12:09:09 +0000 (05:09 -0700)
commitf822a6a1a11759f0a694a4a3547c1186e1a2eaec
tree92224cde4240cb20f5b8aa8218ff62f97ff2f24a
parente4ff75b58a2475c9aafe1d137aa81bcba90aa379
staging: comedi: ni_pcidio: 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_pcidio.c