提交 46267f4c 编写于 作者: G Greg Kroah-Hartman

USB: stir4200.c: remove err() usage

err() was a very old USB-specific macro that I thought had
gone away.  This patch removes it from being used in the
driver and uses dev_err() instead.

CC: Samuel Ortiz <samuel@sortiz.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 d867c43e
...@@ -904,7 +904,7 @@ static int stir_net_open(struct net_device *netdev) ...@@ -904,7 +904,7 @@ static int stir_net_open(struct net_device *netdev)
sprintf(hwname, "usb#%d", stir->usbdev->devnum); sprintf(hwname, "usb#%d", stir->usbdev->devnum);
stir->irlap = irlap_open(netdev, &stir->qos, hwname); stir->irlap = irlap_open(netdev, &stir->qos, hwname);
if (!stir->irlap) { if (!stir->irlap) {
err("stir4200: irlap_open failed"); dev_err(&stir->usbdev->dev, "irlap_open failed\n");
goto err_out5; goto err_out5;
} }
...@@ -913,7 +913,7 @@ static int stir_net_open(struct net_device *netdev) ...@@ -913,7 +913,7 @@ static int stir_net_open(struct net_device *netdev)
"%s", stir->netdev->name); "%s", stir->netdev->name);
if (IS_ERR(stir->thread)) { if (IS_ERR(stir->thread)) {
err = PTR_ERR(stir->thread); err = PTR_ERR(stir->thread);
err("stir4200: unable to start kernel thread"); dev_err(&stir->usbdev->dev, "unable to start kernel thread\n");
goto err_out6; goto err_out6;
} }
...@@ -1042,7 +1042,7 @@ static int stir_probe(struct usb_interface *intf, ...@@ -1042,7 +1042,7 @@ static int stir_probe(struct usb_interface *intf,
ret = usb_reset_configuration(dev); ret = usb_reset_configuration(dev);
if (ret != 0) { if (ret != 0) {
err("stir4200: usb reset configuration failed"); dev_err(&intf->dev, "usb reset configuration failed\n");
goto err_out2; goto err_out2;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册