]> git.karo-electronics.de Git - linux-beck.git/commit
staging: comedi: amplc_dio200: set board_name before common attach
authorIan Abbott <abbotti@mev.co.uk>
Mon, 18 Mar 2013 17:19:04 +0000 (17:19 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Mar 2013 18:30:05 +0000 (11:30 -0700)
commite4681eba8ac585a00ecd8dd84bda5a400085e022
treed7070b6587768fa0a3e6abdcb8d2fcce11fe5a47
parent01d03a93f277d741ecfb744531215cd12fadf591
staging: comedi: amplc_dio200: set board_name before common attach

`dio200_common_attach()` is called from `dio200_attach()` for ISA boards
and from `dio200_auto_attach()` for PCI boards.  `dio200_auto_attach()`
assigns `dev->board_name` (where `dev` is the `struct comedi_device *`
under consideration) before calling `dio200_common_attach()`.  Do the
same in `dio200_attach()` so it can be used there before the call to
`dio200_common_attach()`.  This makes the assignment in
`dio200_common_attach()` unnessary, so remove the assignment from there.

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