now that no UDC driver touches gadget.dev.release
we can assign our release function to it without
being afraid of breaking anything.
Signed-off-by: Felipe Balbi <balbi@ti.com>
gadget->dev.dma_parms = parent->dma_parms;
gadget->dev.dma_mask = parent->dma_mask;
- if (release) {
+ if (release)
gadget->dev.release = release;
- } else {
- if (!gadget->dev.release)
- gadget->dev.release = usb_udc_nop_release;
- }
+ else
+ gadget->dev.release = usb_udc_nop_release;
ret = device_register(&gadget->dev);
if (ret)