From: Ian Abbott Date: Thu, 16 Aug 2012 11:24:10 +0000 (+0100) Subject: staging: comedi: amplc_pc236: check bus type before accessing LCR X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~75^2~905 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15bad7b518043aa00d6220effabaf8c262a5af64;p=pandora-kernel.git staging: comedi: amplc_pc236: check bus type before accessing LCR The PCI-local bridge LCR registers are (assumed to be) present and used iff the board is a PCI board (a PCI236). Currently the code tests if devpriv->lcr_iobase is valid before accessing the registers. Instead, check if the board is a PCI board and assume devpriv->lcr_iobase is valid if so. (Currently, no validity check is performed as the PCI vendor and device ID ought to suffice, but simple checks could be added when attaching the device.) Signed-off-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed