]> git.karo-electronics.de Git - linux-beck.git/commit
staging: comedi: 8255: refactor subdev_8255_init
authorH Hartley Sweeten <hartleys@visionengravers.com>
Wed, 13 Jun 2012 22:42:12 +0000 (15:42 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Jun 2012 00:19:15 +0000 (17:19 -0700)
commitcc31b1be67bf4b878157e276056b6dbce76fdb45
tree6b23e5c3cf54bf217598fa6470867f654663b326
parentd29a18dcdbfbe250265abdf9c94d60df86f90316
staging: comedi: 8255: refactor subdev_8255_init

Refactor the initialization of the 8255 so that the private data
allocation is done before the subdevice is setup. This makes sure
that the setup is complete.

Also, add a bit of whitespace to improve the readability.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Cc: Frank Mori Hess <fmhess@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/8255.c