diff options
Diffstat (limited to 'drivers/usb/gadget/f_rndis.c')
-rw-r--r-- | drivers/usb/gadget/f_rndis.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/gadget/f_rndis.c b/drivers/usb/gadget/f_rndis.c index cc9c49c57c80..36e8c44d8e5e 100644 --- a/drivers/usb/gadget/f_rndis.c +++ b/drivers/usb/gadget/f_rndis.c | |||
@@ -813,7 +813,7 @@ static inline bool can_support_rndis(struct usb_configuration *c) | |||
813 | 813 | ||
814 | int | 814 | int |
815 | rndis_bind_config_vendor(struct usb_configuration *c, u8 ethaddr[ETH_ALEN], | 815 | rndis_bind_config_vendor(struct usb_configuration *c, u8 ethaddr[ETH_ALEN], |
816 | u32 vendorID, const char *manufacturer) | 816 | u32 vendorID, const char *manufacturer, struct eth_dev *dev) |
817 | { | 817 | { |
818 | struct f_rndis *rndis; | 818 | struct f_rndis *rndis; |
819 | int status; | 819 | int status; |
@@ -846,6 +846,7 @@ rndis_bind_config_vendor(struct usb_configuration *c, u8 ethaddr[ETH_ALEN], | |||
846 | rndis->vendorID = vendorID; | 846 | rndis->vendorID = vendorID; |
847 | rndis->manufacturer = manufacturer; | 847 | rndis->manufacturer = manufacturer; |
848 | 848 | ||
849 | rndis->port.ioport = dev; | ||
849 | /* RNDIS activates when the host changes this filter */ | 850 | /* RNDIS activates when the host changes this filter */ |
850 | rndis->port.cdc_filter = 0; | 851 | rndis->port.cdc_filter = 0; |
851 | 852 | ||