usb: gadget: add usb_endpoint_descriptor to struct usb_ep
[deliverable/linux.git] / drivers / usb / gadget / f_subset.c
index 8675ca415329ce535ab97e44251884c19c83ed33..aecaed1724aa167ac1a45f6464f9fb6a1f033a22 100644 (file)
@@ -243,9 +243,9 @@ static int geth_set_alt(struct usb_function *f, unsigned intf, unsigned alt)
        }
 
        DBG(cdev, "init + activate cdc subset\n");
-       geth->port.in = ep_choose(cdev->gadget,
+       geth->port.in_ep->desc = ep_choose(cdev->gadget,
                        geth->hs.in, geth->fs.in);
-       geth->port.out = ep_choose(cdev->gadget,
+       geth->port.out_ep->desc = ep_choose(cdev->gadget,
                        geth->hs.out, geth->fs.out);
 
        net = gether_connect(&geth->port);
@@ -334,9 +334,9 @@ geth_bind(struct usb_configuration *c, struct usb_function *f)
 
 fail:
        /* we might as well release our claims on endpoints */
-       if (geth->port.out)
+       if (geth->port.out_ep->desc)
                geth->port.out_ep->driver_data = NULL;
-       if (geth->port.in)
+       if (geth->port.in_ep->desc)
                geth->port.in_ep->driver_data = NULL;
 
        ERROR(cdev, "%s: can't bind, err %d\n", f->name, status);
This page took 0.027266 seconds and 5 git commands to generate.