]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/usb/gadget/ether.c
[PATCH] USB: resolve ethernet gadget build glitch on pxa
[linux-2.6-omap-h63xx.git] / drivers / usb / gadget / ether.c
index 86affef226e5d2252d39ff676340b42915a0e2c6..5bb53ae889690077efff872aac0f85051ebe629c 100644 (file)
@@ -2428,6 +2428,7 @@ autoconf_fail:
        dev->req->complete = eth_setup_complete;
 
        /* ... and maybe likewise for status transfer */
+#ifdef DEV_CONFIG_CDC
        if (dev->status_ep) {
                dev->stat_req = eth_req_alloc (dev->status_ep,
                                        STATUS_BYTECOUNT, GFP_KERNEL);
@@ -2437,6 +2438,7 @@ autoconf_fail:
                }
                dev->stat_req->context = NULL;
        }
+#endif
 
        /* finish hookup to lower layer ... */
        dev->gadget = gadget;