Skip to content

Commit

Permalink
staging: comedi: adl_pci6208: consolidate the attach messages
Browse files Browse the repository at this point in the history
Consolidate the attach messages into one dev_info() output
at the end of a successful attach.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Jul 6, 2012
1 parent 9d639b6 commit b4dda05
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/staging/comedi/drivers/adl_pci6208.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,6 @@ static int pci6208_attach(struct comedi_device *dev,
struct comedi_subdevice *s;
int ret;

printk(KERN_INFO "comedi%d: pci6208: ", dev->minor);

ret = alloc_private(dev, sizeof(*devpriv));
if (ret < 0)
return ret;
Expand Down Expand Up @@ -280,7 +278,8 @@ static int pci6208_attach(struct comedi_device *dev,
/* s->insn_bits = pci6208_dio_insn_bits; */
/* s->insn_config = pci6208_dio_insn_config; */

printk(KERN_INFO "attached\n");
dev_info(dev->class_dev, "%s: %s, I/O base=0x%04lx\n",
dev->driver->driver_name, dev->board_name, dev->iobase);

return 1;
}
Expand Down

0 comments on commit b4dda05

Please sign in to comment.