]> git.karo-electronics.de Git - linux-beck.git/commit
staging: comedi: adl_pci9118: allocate private data in pci9118_common_attach()
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Thu, 4 Sep 2014 17:39:38 +0000 (10:39 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Sep 2014 20:54:06 +0000 (13:54 -0700)
commitf6009ae536ec642e451d29327bf04532c4c7e0aa
tree6902d804adc0e821f8c4bd54a4b831b88db3b691
parent25a8aaf03e1701c1821f3087f0f12a7da6aa17ed
staging: comedi: adl_pci9118: allocate private data in pci9118_common_attach()

The (*auto_attach) and legacy (*attach) both allocate the private data but
don't use it. For aesthetics, move the allocation into the common attach
code.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/adl_pci9118.c