summaryrefslogtreecommitdiffstats
path: root/drivers/staging/comedi/comedi_fops.c
diff options
context:
space:
mode:
authorIan Abbott2012-08-16 13:24:10 +0200
committerGreg Kroah-Hartman2012-08-16 20:35:44 +0200
commit15bad7b518043aa00d6220effabaf8c262a5af64 (patch)
treecb32b0f66b5f559a701e0e4adc86d089a5136bec /drivers/staging/comedi/comedi_fops.c
parentstaging: comedi: amplc_pc236: check bus type in detach routine (diff)
downloadkernel-qcow2-linux-15bad7b518043aa00d6220effabaf8c262a5af64.tar.gz
kernel-qcow2-linux-15bad7b518043aa00d6220effabaf8c262a5af64.tar.xz
kernel-qcow2-linux-15bad7b518043aa00d6220effabaf8c262a5af64.zip
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 <abbotti@mev.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/comedi/comedi_fops.c')
0 files changed, 0 insertions, 0 deletions