]> err.no Git - linux-2.6/commitdiff
[PATCH] USB: gadget/ether fixes
authorIan Campbell <icampbell@arcom.com>
Wed, 29 Jun 2005 09:15:32 +0000 (10:15 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 12 Jul 2005 18:52:56 +0000 (11:52 -0700)
Signed-off-by: Ian Campbell <icampbell@arcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/ether.c

index 00a5d2566265b8630c15a564cc457e3a1134e157..b5647b50336043f689b44c91334bfa789538c836 100644 (file)
@@ -2428,7 +2428,7 @@ autoconf_fail:
        dev->req->complete = eth_setup_complete;
 
        /* ... and maybe likewise for status transfer */
-#ifdef DEV_CONFIG_CDC
+#if defined(DEV_CONFIG_CDC) || defined(CONFIG_USB_ETH_RNDIS)
        if (dev->status_ep) {
                dev->stat_req = eth_req_alloc (dev->status_ep,
                                        STATUS_BYTECOUNT, GFP_KERNEL);