]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
staging: comedi: unioxx5: use comedi_alloc_spriv()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Mon, 24 Jun 2013 23:23:20 +0000 (16:23 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Jun 2013 23:43:40 +0000 (16:43 -0700)
commitfbd88336660ef7e85905af17a72e1112d924d41c
treee25fb525c16066cbaf3d2b57f899d1c99ececf94
parent7f5ac6f4f595b4b17b15ff6701f07377bea8ffd3
staging: comedi: unioxx5: use comedi_alloc_spriv()

Use the helper function to allocate the memory and set the subdevice
private pointer. This allows the core to automatically free the
memory during the detach so the driver doesn't need to deal with it.

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/unioxx5.c