From: Felipe Balbi Date: Thu, 24 Jan 2013 12:52:24 +0000 (+0200) Subject: usb: gadget: udc-core: allow udc class register gadget device X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~135^2~63^2~291 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f07bd56bbdaa2340ebf46af9a37e7b2d1b4578e3;p=pandora-kernel.git usb: gadget: udc-core: allow udc class register gadget device 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: Tomasz Figa Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed