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)
commit9bfa0d548c0ca427cba4a1c26658f870cfda64ca
tree342b7544e628a737ca6bd7fdbe19aae187298143
parentc10aa035512f9c5092d7044676d3f3d14739f8d8
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