staging: comedi: ni_6527: use mite_alloc()
authorIan Abbott <abbotti@mev.co.uk>
Fri, 14 Sep 2012 16:34:26 +0000 (17:34 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Sep 2012 12:09:08 +0000 (05:09 -0700)
commit6dc71205fc2e87ff68f5d60ffe632013587bc26c
tree1cb05b8ddb376682465682f9fbcc74b5890d2fff
parentca8eb8d5c8aa1a0828d381b213b14e13961f5297
staging: comedi: ni_6527: 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_6527.c