Commit 044c2e17 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman

staging: comedi: aio_aio12_8: cleanup dev->board_name usage

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: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent efe4567c
...@@ -203,8 +203,6 @@ static int aio_aio12_8_attach(struct comedi_device *dev, ...@@ -203,8 +203,6 @@ static int aio_aio12_8_attach(struct comedi_device *dev,
int iobase; int iobase;
int ret; int ret;
dev->board_name = board->name;
iobase = it->options[0]; iobase = it->options[0];
if (!request_region(iobase, 32, dev->board_name)) { if (!request_region(iobase, 32, dev->board_name)) {
printk(KERN_ERR "I/O port conflict"); printk(KERN_ERR "I/O port conflict");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment