staging: comedi: amplc_pc263: check bus type in detach routine
authorIan Abbott <abbotti@mev.co.uk>
Thu, 16 Aug 2012 10:14:19 +0000 (11:14 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 Aug 2012 18:33:16 +0000 (11:33 -0700)
commit6c292278288f9b29f994fe54cbe11cc30d021218
treede603eeab871a6c46304429211bbf75c3398c440
parentd26769446f5389fa5dd5b8745ddc12d4371fc267
staging: comedi: amplc_pc263: check bus type in detach routine

When detaching the device in pc263_detach() mirror the bus type checks
performed by pc263_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_pc263.c