staging: comedi: pcl812: allocate private data before requesting the I/O region
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Mon, 17 Feb 2014 21:27:59 +0000 (14:27 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Feb 2014 19:56:51 +0000 (11:56 -0800)
commitc9968ed9fe88968efa68f5d1a75ab8aa02edac1c
tree8e284f9033b9c0d6b1355050219ffde9e93a6453
parent243e7146c8ed16cbda71126168fe73acab7c62d2
staging: comedi: pcl812: allocate private data before requesting the I/O region

To better match the pcl818 and pcl816 drivers, allocate the private data before
calling comedi_request_region().

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