aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging/comedi/drivers/adq12b.c
diff options
context:
space:
mode:
authorH Hartley Sweeten <hsweeten@visionengravers.com>2013-04-08 10:57:35 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-04-08 11:44:07 -0700
commit5993f3a2692eed3c74c86882155b8703a0060ad5 (patch)
tree51b5c4d233e8037a07b835d55b5d7a43ebbaa0c4 /drivers/staging/comedi/drivers/adq12b.c
parent46c58127ad544fda69cdab377ca4cb304c61202d (diff)
staging: comedi: remove unnecessary dev->board_name initialization
The dev->board_name is now initialized by the comedi core before calling the(*attach) or (*auto_attach) function in a driver. As long as the driver does no additional probing, it's no longer necessary initialize the board_name. 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>
Diffstat (limited to 'drivers/staging/comedi/drivers/adq12b.c')
-rw-r--r--drivers/staging/comedi/drivers/adq12b.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/comedi/drivers/adq12b.c b/drivers/staging/comedi/drivers/adq12b.c
index f7950dfe2dd..dd315972d92 100644
--- a/drivers/staging/comedi/drivers/adq12b.c
+++ b/drivers/staging/comedi/drivers/adq12b.c
@@ -217,8 +217,6 @@ static int adq12b_attach(struct comedi_device *dev, struct comedi_devconfig *it)
int unipolar, differential;
int ret;
- dev->board_name = dev->driver->driver_name;
-
iobase = it->options[0];
unipolar = it->options[1];
differential = it->options[2];