From: H Hartley Sweeten Date: Wed, 19 Sep 2012 01:49:46 +0000 (-0700) Subject: staging: comedi: daqboard2000: add a dev_info message after attach X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8a3f3d37c58ea44a2441fe8be4d8cd0996fc0c3c;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git staging: comedi: daqboard2000: add a dev_info message after attach After a successful attach, output a simple dev_info message. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/daqboard2000.c b/drivers/staging/comedi/drivers/daqboard2000.c index ff81829323f..88037aea25a 100644 --- a/drivers/staging/comedi/drivers/daqboard2000.c +++ b/drivers/staging/comedi/drivers/daqboard2000.c @@ -762,8 +762,13 @@ static int daqboard2000_attach_pci(struct comedi_device *dev, s = &dev->subdevices[2]; result = subdev_8255_init(dev, s, daqboard2000_8255_cb, (unsigned long)(devpriv->daq + dioP2ExpansionIO8Bit)); + if (result) + return result; - return result; + dev_info(dev->class_dev, "%s: %s attached\n", + dev->driver->driver_name, dev->board_name); + + return 0; } static void daqboard2000_detach(struct comedi_device *dev)