]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: ii_pci20kc: use comedi_alloc_spriv()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Wed, 24 Jul 2013 19:08:58 +0000 (12:08 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jul 2013 20:24:11 +0000 (13:24 -0700)
commit827726bcf855bf62fe09d8c752daf60de1274bef
tree6474f2bf6bd0a09422b18eaf98ca887e02a0e150
parent82376b87a375c43d26cc8dcdff88b46cbdb56654
staging: comedi: ii_pci20kc: use comedi_alloc_spriv()

For aesthetic reasons, use the helper function to allocate the
subdevice private data instead of hanging it on the device
private data. The core will free the memory during the detach.

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