提交 543ae7f9 编写于 作者: H hayeswang 提交者: David S. Miller

net/usb/r815x: change the return value for bind functions

Replace 0 with the result from usbnet_cdc_bind().
Signed-off-by: NHayes Wang <hayeswang@realtek.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 b771721a
......@@ -172,7 +172,7 @@ static int r8153_bind(struct usbnet *dev, struct usb_interface *intf)
dev->mii.phy_id = R815x_PHY_ID;
dev->mii.supports_gmii = 1;
return 0;
return status;
}
static int r8152_bind(struct usbnet *dev, struct usb_interface *intf)
......@@ -191,7 +191,7 @@ static int r8152_bind(struct usbnet *dev, struct usb_interface *intf)
dev->mii.phy_id = R815x_PHY_ID;
dev->mii.supports_gmii = 0;
return 0;
return status;
}
static const struct driver_info r8152_info = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册