From: H Hartley Sweeten Date: Tue, 9 Apr 2013 23:21:09 +0000 (-0700) Subject: staging: comedi: aio_aio12_8: cleanup dev->board_name usage X-Git-Tag: next-20130422~28^2~103 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=044c2e1756f3e3d5d73a7aac53d801d0242e4e56;p=karo-tx-linux.git 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: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/aio_aio12_8.c b/drivers/staging/comedi/drivers/aio_aio12_8.c index 601f03d5897f..14cee4960911 100644 --- a/drivers/staging/comedi/drivers/aio_aio12_8.c +++ b/drivers/staging/comedi/drivers/aio_aio12_8.c @@ -203,8 +203,6 @@ static int aio_aio12_8_attach(struct comedi_device *dev, int iobase; int ret; - dev->board_name = board->name; - iobase = it->options[0]; if (!request_region(iobase, 32, dev->board_name)) { printk(KERN_ERR "I/O port conflict");