staging: comedi: amplc_pc236: check bus type in detach routine
authorIan Abbott <abbotti@mev.co.uk>
Thu, 16 Aug 2012 11:24:09 +0000 (12:24 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 Aug 2012 18:35:44 +0000 (11:35 -0700)
commit02918c0066b1c990a4e60c0dd4702eb9639b760b
tree685f0c39e9a052d41fc7c979a4e93eb7b2f15028
parent409861ff73c1bde35993da3d2b976ec8b9c107ea
staging: comedi: amplc_pc236: check bus type in detach routine

When detaching the device in pc236_detach() mirror the bus type checks
performed by pc236_attach().  The existing tests are safe but rely on
dev->iobase being 0 when comedi_to_pci_dev(dev) is NULL.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/amplc_pc236.c