From: Ian Abbott Date: Tue, 14 Aug 2012 15:31:29 +0000 (+0100) Subject: staging: comedi: amplc_dio200: check bus type in detach routine X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~75^2~938 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7518888afc14e3d1e988837fef4471cd2b3c820;p=pandora-kernel.git staging: comedi: amplc_dio200: check bus type in detach routine When detaching the device in dio200_detach() mirror the bus type checks performed by dio200_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