]> git.karo-electronics.de Git - karo-tx-linux.git/commit
staging: comedi: ni_mio_common: fix the ni_write[blw]() functions
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 22 Mar 2016 17:04:48 +0000 (10:04 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Apr 2016 16:08:49 +0000 (09:08 -0700)
commit62fe263236e09a5b4ec64bc71a42d37caf943eca
tree139ab8d07bab52094fc2236619f98f4b3d09dbb6
parent263b0af7cc419a6f5254269a30e9784b5476f433
staging: comedi: ni_mio_common: fix the ni_write[blw]() functions

commit bd3a3cd6c27b117fb9a43a38c8072c95332beecc upstream.

Memory mapped io (dev->mmio) should not also be writing to the ioport
(dev->iobase) registers. Add the missing 'else' to these functions.

Fixes: 0953ee4acca0 ("staging: comedi: ni_mio_common: checkpatch.pl cleanup (else not useful)")
Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/ni_mio_common.c