• Felipe Balbi's avatar
    usb: gadget: udc-core: allow udc class register gadget device · f07bd56b
    Felipe Balbi authored
    Currently all UDC drivers are calling
    device_register() before calling
    usb_add_gadget_udc(). In order to avoid
    code duplication, we can allow udc-core.c
    register that device.
    
    However that would become a really large patch,
    so to cope with the meanwhile and allow us
    to write bite-sized patches, we're adding
    a flag which will be set by UDC driver once
    it removes the code for registering the
    gadget device.
    
    Once all are converted, the new flag will
    be removed.
    Reviewed-by: default avatarTomasz Figa <tomasz.figa@gmail.com>
    Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
    f07bd56b
udc-core.c 12.5 KB