summaryrefslogtreecommitdiff
path: root/drivers/usb/eth/usb_ether.c
diff options
context:
space:
mode:
authorTed Chen <tedchen@realtek.com>2016-01-20 14:24:52 +0800
committerMarek Vasut <marex@denx.de>2016-01-23 16:22:34 +0100
commit9dc8ba19c50fc0b1623c654bcfe6caa903a4c36c (patch)
tree8bec0049980f6032b3b07da80e288487a7596c97 /drivers/usb/eth/usb_ether.c
parent1ff6015ecba42f7b02735c61ec90ef9a1683ab67 (diff)
usb: eth: add Realtek RTL8152B/RTL8153 DRIVER
This patch adds driver support for the Realtek RTL8152B/RTL8153 USB network adapters. Signed-off-by: Ted Chen <tedchen at realtek.com> [swarren, fixed a few compiler warnings] [swarren, with permission, converted license header to SPDX] [swarren, removed printf() spew during probe()] Signed-off-by: Stephen Warren <swarren at nvidia.com>
Diffstat (limited to 'drivers/usb/eth/usb_ether.c')
-rw-r--r--drivers/usb/eth/usb_ether.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/usb/eth/usb_ether.c b/drivers/usb/eth/usb_ether.c
index 62d20f0db9..b9c9a8402e 100644
--- a/drivers/usb/eth/usb_ether.c
+++ b/drivers/usb/eth/usb_ether.c
@@ -180,6 +180,13 @@ static const struct usb_eth_prob_dev prob_dev[] = {
.get_info = smsc95xx_eth_get_info,
},
#endif
+#ifdef CONFIG_USB_ETHER_RTL8152
+ {
+ .before_probe = r8152_eth_before_probe,
+ .probe = r8152_eth_probe,
+ .get_info = r8152_eth_get_info,
+ },
+#endif
{ }, /* END */
};