diff options
author | hayeswang <hayeswang@realtek.com> | 2013-07-31 05:21:24 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-07-31 17:49:13 -0400 |
commit | 543ae7f9c4e69816043ac3b526310353b413b325 (patch) | |
tree | eeedf700dae513eb63f25f5bf0e9a3226ae6371d | |
parent | b771721a748875e3654debdf68ad4708477f18c4 (diff) |
net/usb/r815x: change the return value for bind functions
Replace 0 with the result from usbnet_cdc_bind().
Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/usb/r815x.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/usb/r815x.c b/drivers/net/usb/r815x.c index 1a80e76ce0b9..2df2f4fb42a7 100644 --- a/drivers/net/usb/r815x.c +++ b/drivers/net/usb/r815x.c | |||
@@ -172,7 +172,7 @@ static int r8153_bind(struct usbnet *dev, struct usb_interface *intf) | |||
172 | dev->mii.phy_id = R815x_PHY_ID; | 172 | dev->mii.phy_id = R815x_PHY_ID; |
173 | dev->mii.supports_gmii = 1; | 173 | dev->mii.supports_gmii = 1; |
174 | 174 | ||
175 | return 0; | 175 | return status; |
176 | } | 176 | } |
177 | 177 | ||
178 | static int r8152_bind(struct usbnet *dev, struct usb_interface *intf) | 178 | 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 | dev->mii.phy_id = R815x_PHY_ID; | 191 | dev->mii.phy_id = R815x_PHY_ID; |
192 | dev->mii.supports_gmii = 0; | 192 | dev->mii.supports_gmii = 0; |
193 | 193 | ||
194 | return 0; | 194 | return status; |
195 | } | 195 | } |
196 | 196 | ||
197 | static const struct driver_info r8152_info = { | 197 | static const struct driver_info r8152_info = { |