From 2a5cd0a5f1a86f9c5841218eaec2b81f993b3d74 Mon Sep 17 00:00:00 2001 From: H Hartley Sweeten Date: Thu, 17 Jul 2014 12:27:29 -0700 Subject: [PATCH] staging: comedi: usbduxfast: convert pr_warn() to dev_warn() Use dev_warn() to output the warning message. Signed-off-by: H Hartley Sweeten Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- drivers/staging/comedi/drivers/ni_pcimio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/comedi/drivers/ni_pcimio.c b/drivers/staging/comedi/drivers/ni_pcimio.c index 1532fac7638e..a902a3891351 100644 --- a/drivers/staging/comedi/drivers/ni_pcimio.c +++ b/drivers/staging/comedi/drivers/ni_pcimio.c @@ -1183,7 +1183,7 @@ static int pcimio_auto_attach(struct comedi_device *dev, ret = mite_setup(devpriv->mite); if (ret < 0) { - pr_warn("error setting up mite\n"); + dev_warn(dev->class_dev, "error setting up mite\n"); return ret; } -- 2.30.2