staging: comedi: addi_apci_1564: remove unnecessary dev->board_name initialization
authorChase Southwood <chase.southwood@gmail.com>
Fri, 11 Jul 2014 04:02:04 +0000 (23:02 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 Jul 2014 00:38:42 +0000 (17:38 -0700)
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: Chase Southwood <chase.southwood@gmail.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/addi_apci_1564.c

index 675054f080d70e7e8cab23870ec6af1db111ca65..e3dcab76a3bc9ab6d33acd290c0861a28530d1c3 100644 (file)
@@ -353,8 +353,6 @@ static int apci1564_auto_attach(struct comedi_device *dev,
        struct comedi_subdevice *s;
        int ret;
 
-       dev->board_name = dev->driver->driver_name;
-
        devpriv = comedi_alloc_devpriv(dev, sizeof(*devpriv));
        if (!devpriv)
                return -ENOMEM;