[PATCH V5 6/6] staging: vt6556: Replace printk by dev_warn

2014-07-15 Thread Peter Senna Tschudin
This patch fixes a checkpatch warning by replacing printk
by dev_warn. Tested by compilation only.

Signed-off-by: Peter Senna Tschudin peter.se...@gmail.com
---
Changes from V4:
 - use dev_warn instead of pr_warn

 drivers/staging/vt6656/main_usb.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/staging/vt6656/main_usb.c 
b/drivers/staging/vt6656/main_usb.c
index 7567646..6708e98 100644
--- a/drivers/staging/vt6656/main_usb.c
+++ b/drivers/staging/vt6656/main_usb.c
@@ -527,7 +527,8 @@ static void usb_device_reset(struct vnt_private *pDevice)
 
status = usb_reset_device(pDevice-usb);
if (status)
-printk(usb_device_reset fail status=%d\n,status);
+   dev_warn(pDevice-usb-dev,
+usb_device_reset fail status=%d\n, status);
 }
 
 static void device_free_int_bufs(struct vnt_private *priv)
-- 
1.9.3

___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel


Re: [PATCH V5 6/6] staging: vt6556: Replace printk by dev_warn

2014-07-15 Thread Greg KH
On Tue, Jul 15, 2014 at 10:46:49PM +0200, Peter Senna Tschudin wrote:
 This patch fixes a checkpatch warning by replacing printk
 by dev_warn. Tested by compilation only.
 
 Signed-off-by: Peter Senna Tschudin peter.se...@gmail.com
 ---
 Changes from V4:
  - use dev_warn instead of pr_warn
 
  drivers/staging/vt6656/main_usb.c | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)
 
 diff --git a/drivers/staging/vt6656/main_usb.c 
 b/drivers/staging/vt6656/main_usb.c
 index 7567646..6708e98 100644
 --- a/drivers/staging/vt6656/main_usb.c
 +++ b/drivers/staging/vt6656/main_usb.c
 @@ -527,7 +527,8 @@ static void usb_device_reset(struct vnt_private *pDevice)
  
   status = usb_reset_device(pDevice-usb);
   if (status)
 -printk(usb_device_reset fail status=%d\n,status);
 + dev_warn(pDevice-usb-dev,
 +  usb_device_reset fail status=%d\n, status);
  }
  
  static void device_free_int_bufs(struct vnt_private *priv)

This doesn't apply to my latest tree, can you please refresh it and
resend?

thanks,

greg k-h
___
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel