]> xenbits.xensource.com Git - people/aperard/linux-chromebook.git/commitdiff
UPSTREAM: staging/gdm72xx: Use dev_ printks in gdm_usb.c
authorYAMANE Toshiaki <yamanetoshi@gmail.com>
Mon, 29 Oct 2012 11:05:43 +0000 (20:05 +0900)
committerGerrit <chrome-bot@google.com>
Fri, 30 Nov 2012 23:48:32 +0000 (15:48 -0800)
fixed below checkpatch warnings.
- WARNING: Prefer netdev_err(netdev, ... then dev_err(dev, ... then pr_err(...  to printk(KERN_ERR ...
- WARNING: Prefer netdev_info(netdev, ... then dev_info(dev, ... then pr_info(...  to printk(KERN_INFO ...

Signed-off-by: YAMANE Toshiaki <yamanetoshi@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit a7d46832df45a41e880ea39ccd4882d012a589bb)

Change-Id: Ia854c90ac61c142fea7526a1e3f30a49e230528d
Signed-off-by: Ben Chan <benchan@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/38960
Reviewed-by: Olof Johansson <olofj@chromium.org>
drivers/staging/gdm72xx/gdm_usb.c

index 140975394e8e6c827c8018222f27474585ea4ab1..4426941b94706bbee09a29726d2ed6ca31995b4c 100644 (file)
@@ -319,7 +319,7 @@ static int gdm_usb_send(void *priv_dev, void *data, int len,
        unsigned long flags, flags2;
 
        if (!udev->usbdev) {
-               printk(KERN_ERR "%s: No such device\n", __func__);
+               dev_err(&usbdev->dev, "%s: No such device\n", __func__);
                return -ENODEV;
        }
 
@@ -501,7 +501,7 @@ static int gdm_usb_receive(void *priv_dev,
        unsigned long flags;
 
        if (!udev->usbdev) {
-               printk(KERN_ERR "%s: No such device\n", __func__);
+               dev_err(&usbdev->dev, "%s: No such device\n", __func__);
                return -ENODEV;
        }
 
@@ -576,9 +576,9 @@ static int gdm_usb_probe(struct usb_interface *intf,
        idProduct = L2H(usbdev->descriptor.idProduct);
        bcdDevice = L2H(usbdev->descriptor.bcdDevice);
 
-       printk(KERN_INFO "Found GDM USB VID = 0x%04x PID = 0x%04x...\n",
-               idVendor, idProduct);
-       printk(KERN_INFO "GCT WiMax driver version %s\n", DRIVER_VERSION);
+       dev_info(&intf->dev, "Found GDM USB VID = 0x%04x PID = 0x%04x...\n",
+                idVendor, idProduct);
+       dev_info(&intf->dev, "GCT WiMax driver version %s\n", DRIVER_VERSION);
 
 
        if (idProduct == EMERGENCY_PID) {