staging: comedi: ni_labpc_cs: remove pcmcia_device private data
authorH Hartley Sweeten <hartleys@visionengravers.com>
Sat, 26 Jan 2013 01:37:06 +0000 (18:37 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Jan 2013 04:09:25 +0000 (23:09 -0500)
commitb2e1be03ac1747cbb758fa146fe5cf364f306420
treec6f38ca0e67d9fa5ad70e0a0f53b3230515596d4
parentfdcb5fdee2c7ec6327d08f4529da7e1130d0fa63
staging: comedi: ni_labpc_cs: remove pcmcia_device private data

The private data, struct local_info_t, is not being used in the
driver. Remove it as well as the kzalloc/kfree.

Also, don't set the 'pcmcia_cur_dev' variable unless the pcmcia
configuration is successful.

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