From: H Hartley Sweeten Date: Thu, 17 Jul 2014 19:27:29 +0000 (-0700) Subject: staging: comedi: usbduxfast: convert pr_warn() to dev_warn() X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=2a5cd0a5f1a86f9c5841218eaec2b81f993b3d74;p=openwrt%2Fstaging%2Fblogic.git 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 --- 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; }