aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/comedi/drivers/rti802.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/rti802.c
parentstaging: comedi: comedi_pci: dev->board_name is always valid (diff)
downloadlinux-dev-5993f3a2692eed3c74c86882155b8703a0060ad5.tar.xz
linux-dev-5993f3a2692eed3c74c86882155b8703a0060ad5.zip
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/rti802.c')
-rw-r--r--drivers/staging/comedi/drivers/rti802.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/comedi/drivers/rti802.c b/drivers/staging/comedi/drivers/rti802.c
index 2185ca1bcf02..1440162c8411 100644
--- a/drivers/staging/comedi/drivers/rti802.c
+++ b/drivers/staging/comedi/drivers/rti802.c
@@ -103,8 +103,6 @@ static int rti802_attach(struct comedi_device *dev, struct comedi_devconfig *it)
}
dev->iobase = iobase;
- dev->board_name = "rti802";
-
devpriv = kzalloc(sizeof(*devpriv), GFP_KERNEL);
if (!devpriv)
return -ENOMEM;