From: Ian Abbott Date: Thu, 16 Aug 2012 11:24:09 +0000 (+0100) Subject: staging: comedi: amplc_pc236: check bus type in detach routine X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~75^2~906 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02918c0066b1c990a4e60c0dd4702eb9639b760b;p=pandora-kernel.git 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed