Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 303607
b: refs/heads/master
c: 21f5243
h: refs/heads/master
i:
  303605: 214ef83
  303603: d1b044b
  303599: abc2c73
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Apr 25, 2012
1 parent 52bd005 commit 1ec1ffc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: db6b22196cc013968742d6c725f26ef6d8154048
refs/heads/master: 21f524321bde856b16fc55925282e41b4545a111
15 changes: 8 additions & 7 deletions trunk/drivers/net/usb/rtl8150.c
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,8 @@ static int async_set_registers(rtl8150_t * dev, u16 indx, u16 size)
if ((ret = usb_submit_urb(dev->ctrl_urb, GFP_ATOMIC))) {
if (ret == -ENODEV)
netif_device_detach(dev->netdev);
err("control request submission failed: %d", ret);
dev_err(&dev->udev->dev,
"control request submission failed: %d\n", ret);
} else
set_bit(RX_REG_SET, &dev->flags);

Expand Down Expand Up @@ -516,9 +517,9 @@ static void intr_callback(struct urb *urb)
if (res == -ENODEV)
netif_device_detach(dev->netdev);
else if (res)
err ("can't resubmit intr, %s-%s/input0, status %d",
dev->udev->bus->bus_name,
dev->udev->devpath, res);
dev_err(&dev->udev->dev,
"can't resubmit intr, %s-%s/input0, status %d\n",
dev->udev->bus->bus_name, dev->udev->devpath, res);
}

static int rtl8150_suspend(struct usb_interface *intf, pm_message_t message)
Expand Down Expand Up @@ -890,11 +891,11 @@ static int rtl8150_probe(struct usb_interface *intf,
dev->intr_interval = 100; /* 100ms */

if (!alloc_all_urbs(dev)) {
err("out of memory");
dev_err(&intf->dev, "out of memory\n");
goto out;
}
if (!rtl8150_reset(dev)) {
err("couldn't reset the device");
dev_err(&intf->dev, "couldn't reset the device\n");
goto out1;
}
fill_skb_pool(dev);
Expand All @@ -903,7 +904,7 @@ static int rtl8150_probe(struct usb_interface *intf,
usb_set_intfdata(intf, dev);
SET_NETDEV_DEV(netdev, &intf->dev);
if (register_netdev(netdev) != 0) {
err("couldn't register the device");
dev_err(&intf->dev, "couldn't register the device\n");
goto out2;
}

Expand Down

0 comments on commit 1ec1ffc

Please sign in to comment.