From: Chase Southwood Date: Fri, 11 Jul 2014 04:02:04 +0000 (-0500) Subject: staging: comedi: addi_apci_1564: remove unnecessary dev->board_name initialization X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=eb2547db7525d14f67c6c4ad19b1ccfe14ef63ac;p=linux-beck.git staging: comedi: addi_apci_1564: 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: Chase Southwood Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/addi_apci_1564.c b/drivers/staging/comedi/drivers/addi_apci_1564.c index 675054f080d7..e3dcab76a3bc 100644 --- a/drivers/staging/comedi/drivers/addi_apci_1564.c +++ b/drivers/staging/comedi/drivers/addi_apci_1564.c @@ -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;