Skip to content

Commit

Permalink
staging: comedi: s626: add final attach message
Browse files Browse the repository at this point in the history
Add a simple dev_info() message after a successfull attach.
Change the final return to '0' to indicate success.

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 Sep 26, 2012
1 parent b7eaf21 commit f996ab2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/staging/comedi/drivers/s626.c
Original file line number Diff line number Diff line change
Expand Up @@ -2850,7 +2850,9 @@ static int s626_attach_pci(struct comedi_device *dev, struct pci_dev *pcidev)

s626_initialize(dev);

return 1;
dev_info(dev->class_dev, "%s attached\n", dev->board_name);

return 0;
}

static void s626_detach(struct comedi_device *dev)
Expand Down

0 comments on commit f996ab2

Please sign in to comment.