Commit 543ae7f9 authored by hayeswang's avatar hayeswang Committed by 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: default avatarHayes Wang <hayeswang@realtek.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b771721a
...@@ -172,7 +172,7 @@ static int r8153_bind(struct usbnet *dev, struct usb_interface *intf) ...@@ -172,7 +172,7 @@ static int r8153_bind(struct usbnet *dev, struct usb_interface *intf)
dev->mii.phy_id = R815x_PHY_ID; dev->mii.phy_id = R815x_PHY_ID;
dev->mii.supports_gmii = 1; dev->mii.supports_gmii = 1;
return 0; return status;
} }
static int r8152_bind(struct usbnet *dev, struct usb_interface *intf) 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) ...@@ -191,7 +191,7 @@ static int r8152_bind(struct usbnet *dev, struct usb_interface *intf)
dev->mii.phy_id = R815x_PHY_ID; dev->mii.phy_id = R815x_PHY_ID;
dev->mii.supports_gmii = 0; dev->mii.supports_gmii = 0;
return 0; return status;
} }
static const struct driver_info r8152_info = { static const struct driver_info r8152_info = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment