]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: comedi: s626: add final attach message
authorH Hartley Sweeten <hartleys@visionengravers.com>
Mon, 24 Sep 2012 20:37:19 +0000 (13:37 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Sep 2012 16:37:31 +0000 (09:37 -0700)
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>
drivers/staging/comedi/drivers/s626.c

index f4251acd9cc9ae4dd4297779bcb6dca0ca2014b3..07ff93b996c024e452fe22d9516cd696710f44c1 100644 (file)
@@ -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)