staging: comedi: dyna_pci10xx: fix detach
authorH Hartley Sweeten <hartleys@visionengravers.com>
Thu, 19 Jul 2012 02:01:34 +0000 (19:01 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jul 2012 23:51:38 +0000 (16:51 -0700)
commitf2a64902e3c2ffa34b52e6ad13e8e3c40f6919c7
tree332b64b497083500adb6dee97e68b0b51fbd871a
parent06183026d82cf58cdfba53b661914faf3c414029
staging: comedi: dyna_pci10xx: fix detach

The detach for this driver is missing the check to make sure
that the pci device is enabled before disabling it.

It's also missing the pci_dev_put().

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