]> git.sur5r.net Git - u-boot/blobdiff - drivers/usb/gadget/composite.c
i2c: Instantiate I2C controllers when selected
[u-boot] / drivers / usb / gadget / composite.c
index d96296cd73b1f57815413afcc46e33f0e38390a0..a13b21d0a0f233833d616735460b51da288a83a8 100644 (file)
@@ -948,6 +948,7 @@ static void composite_unbind(struct usb_gadget *gadget)
                        debug("unbind config '%s'/%p\n", c->label, c);
                        c->unbind(c);
                }
+               free(c);
        }
        if (composite->unbind)
                composite->unbind(cdev);