staging: comedi: cb_pcimdda: remove attached_to_8255 from private data
commit8496fc47e311b2ceeccb224d215baae86172d092
authorH Hartley Sweeten <hartleys@visionengravers.com>
Fri, 17 Aug 2012 02:53:20 +0000 (16 19:53 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Aug 2012 15:17:35 +0000 (17 08:17 -0700)
tree8ff4b2009f0038e3bc8a2845b617f2df04155787
parent86476d9f7cdffbe51396a1c0597d621a670d337d
staging: comedi: cb_pcimdda: remove attached_to_8255 from private data

The attached_to_8255 variable in the private data is used as a flag
to indicate that the 8255 subdevice has been initialized. The call
to subdev_8255_cleanup only requires that the dev->subdevices pointer
is valid. Change the test in the detach function and remove the
attached_to_8255 variable.

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