]> git.baikalelectronics.ru Git - kernel.git/commit
staging: comedi: amplc_dio200: set dev->iobase before common attach
authorIan Abbott <abbotti@mev.co.uk>
Wed, 24 Oct 2012 15:48:00 +0000 (16:48 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Oct 2012 22:25:12 +0000 (15:25 -0700)
commitdd00536e3eee858b8bce92831bde4b9f48dca84d
tree342b7544e628a737ca6bd7fdbe19aae187298143
parent44dab240ef953ab8908cd326e7b1a5ca06eefcd7
staging: comedi: amplc_dio200: set dev->iobase before common attach

Don't pass the I/O base address to `dio200_common_attach()`.  The only
thing it does with it is set `dev->iobase` to the passed in value.  Do
that before calling `dio200_common_attach()` in order to simplify
upcoming support for different register access methods.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/amplc_dio200.c