From: H Hartley Sweeten Date: Mon, 20 Aug 2012 22:05:23 +0000 (-0700) Subject: staging: comedi: comedi_test: convert attach message to dev_info X-Git-Tag: firefly_0821_release~3680^2~1977^2~818 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=9ac6eb40510bf9e6e82435f78f5c1cb92ee3f97a;p=firefly-linux-kernel-4.4.55.git staging: comedi: comedi_test: convert attach message to dev_info Convert the 'attach' message from a printk to a dev_info. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/comedi_test.c b/drivers/staging/comedi/drivers/comedi_test.c index 68647165f8f9..8ea9202ecba7 100644 --- a/drivers/staging/comedi/drivers/comedi_test.c +++ b/drivers/staging/comedi/drivers/comedi_test.c @@ -489,10 +489,12 @@ static int waveform_attach(struct comedi_device *dev, devpriv->timer.function = waveform_ai_interrupt; devpriv->timer.data = (unsigned long)dev; - printk(KERN_INFO "comedi%d: comedi_test: " - "%i microvolt, %li microsecond waveform attached\n", dev->minor, - devpriv->uvolt_amplitude, devpriv->usec_period); - return 1; + dev_info(dev->class_dev, + "%s: %i microvolt, %li microsecond waveform attached\n", + dev->board_name, + devpriv->uvolt_amplitude, devpriv->usec_period); + + return 0; } static void waveform_detach(struct comedi_device *dev)