Skip to content

Commit

Permalink
staging/gdm72xx: Use dev_ printks in gdm_usb.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
YAMANE Toshiaki authored and Greg Kroah-Hartman committed Oct 30, 2012
1 parent 626e557 commit a7d4683
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions drivers/staging/gdm72xx/gdm_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ static int gdm_usb_send(void *priv_dev, void *data, int len,
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;
}

Expand Down Expand Up @@ -484,7 +484,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;
}

Expand Down Expand Up @@ -559,9 +559,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) {
Expand Down

0 comments on commit a7d4683

Please sign in to comment.