aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/multi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/gadget/multi.c')
-rw-r--r--drivers/usb/gadget/multi.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/drivers/usb/gadget/multi.c b/drivers/usb/gadget/multi.c
index 64711feca845..429560100b10 100644
--- a/drivers/usb/gadget/multi.c
+++ b/drivers/usb/gadget/multi.c
@@ -26,8 +26,11 @@
26#include <linux/utsname.h> 26#include <linux/utsname.h>
27 27
28 28
29#if defined CONFIG_USB_G_MULTI_RNDIS 29#if defined USB_ETH_RNDIS
30# define CONFIG_USB_ETH_RNDIS y 30# undef USB_ETH_RNDIS
31#endif
32#ifdef CONFIG_USB_ETH_RNDIS
33# define USB_ETH_RNDIS y
31#endif 34#endif
32 35
33 36
@@ -59,7 +62,7 @@
59 62
60#include "f_ecm.c" 63#include "f_ecm.c"
61#include "f_subset.c" 64#include "f_subset.c"
62#ifdef CONFIG_USB_ETH_RNDIS 65#ifdef USB_ETH_RNDIS
63# include "f_rndis.c" 66# include "f_rndis.c"
64# include "rndis.c" 67# include "rndis.c"
65#endif 68#endif
@@ -150,7 +153,7 @@ FSG_MODULE_PARAMETERS(/* no prefix */, mod_data);
150static struct fsg_common *fsg_common; 153static struct fsg_common *fsg_common;
151 154
152 155
153#ifdef CONFIG_USB_ETH_RNDIS 156#ifdef USB_ETH_RNDIS
154 157
155static int __init rndis_do_config(struct usb_configuration *c) 158static int __init rndis_do_config(struct usb_configuration *c)
156{ 159{
@@ -292,7 +295,7 @@ static int __init multi_bind(struct usb_composite_dev *cdev)
292 strings_dev[STRING_PRODUCT_IDX].id = status; 295 strings_dev[STRING_PRODUCT_IDX].id = status;
293 device_desc.iProduct = status; 296 device_desc.iProduct = status;
294 297
295#ifdef CONFIG_USB_ETH_RNDIS 298#ifdef USB_ETH_RNDIS
296 /* register our first configuration */ 299 /* register our first configuration */
297 status = usb_add_config(cdev, &rndis_config_driver); 300 status = usb_add_config(cdev, &rndis_config_driver);
298 if (status < 0) 301 if (status < 0)