]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
staging: comedi: mite: add mite_alloc() and mite_free()
authorIan Abbott <abbotti@mev.co.uk>
Fri, 14 Sep 2012 16:34:25 +0000 (17:34 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Sep 2012 12:09:08 +0000 (05:09 -0700)
commitca8eb8d5c8aa1a0828d381b213b14e13961f5297
treec0a1a4a3c6aa716565bd562900cdc60ac7679cf5
parentd799773f6837b44f4dca8d298c2be4d524d3331e
staging: comedi: mite: add mite_alloc() and mite_free()

Add `mite_alloc()` to allow drivers to allocate and initialize a `struct
mite_struct` dynamically and export it.  Add `mite_free()`, which is
currently just an inline wrapper for `kfree()`.

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/mite.c
drivers/staging/comedi/drivers/mite.h