From: H Hartley Sweeten Date: Mon, 8 Apr 2013 21:29:47 +0000 (-0700) Subject: staging: comedi: acl7225b: cleanup dev->board_name usage X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=7ffb0a85763957983c260f5f08c250d45d1d4449;p=deliverable%2Flinux.git staging: comedi: acl7225b: cleanup dev->board_name usage The comedi core initializes the dev->board_name before calling the driver (*attach) function. There is not reason to reinitialize it in the driver. Use the dev->board_name when doing the request_resource() instead of the open-coded string. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/acl7225b.c b/drivers/staging/comedi/drivers/acl7225b.c index 284232fca555..8d9e1aec985a 100644 --- a/drivers/staging/comedi/drivers/acl7225b.c +++ b/drivers/staging/comedi/drivers/acl7225b.c @@ -74,9 +74,8 @@ static int acl7225b_attach(struct comedi_device *dev, iobase = it->options[0]; iorange = board->io_range; - if (!request_region(iobase, iorange, "acl7225b")) + if (!request_region(iobase, iorange, dev->board_name)) return -EIO; - dev->board_name = board->name; dev->iobase = iobase; dev->irq = 0;