]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: comedi: amplc_dio200: cleanup dev->board_name usage
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Tue, 9 Apr 2013 23:12:55 +0000 (16:12 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 Apr 2013 19:47:38 +0000 (12:47 -0700)
This legacy driver does no additional probing so the dev->board_name
will already be properly initialized by the comedi core before calling
the (*attach) function.

Remove the unnecessary initialization of dev->board_name.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/amplc_dio200.c

index 1a562e8e58426573c79a1f1af4e7357b4dca52b5..1d1f2feaeb66f03bfd4ef2488dc51a3d9b47243f 100644 (file)
@@ -292,7 +292,6 @@ static int dio200_attach(struct comedi_device *dev, struct comedi_devconfig *it)
        unsigned int irq;
        int ret;
 
-       dev->board_name = thisboard->name;
        iobase = it->options[0];
        irq = it->options[1];
        dev_info(dev->class_dev, "%s: attach %s 0x%lX,%u\n",