]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: ci13xxx: move endpoint (de-)initialization to probe/remove
authorAlexander Shishkin <alexander.shishkin@linux.intel.com>
Tue, 8 May 2012 20:29:03 +0000 (23:29 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 May 2012 22:00:26 +0000 (15:00 -0700)
commita0f9bdc34d5bd8906b37351a5dc715b496763bae
treeaec4892d6b5d57c6a2a0e35d4411feee0a18a118
parentfa144ddc440ecaf2d32e8c4da03319276726f2c2
usb: gadget: ci13xxx: move endpoint (de-)initialization to probe/remove

Currently, endpoints are initialized in gadget start/stop methods, however
for the new style gadgets it is expected that bind() can be called before
controller's start(), and we need endpoints already initialized at that
point. So, move endpoint initialization to controller's probe before we
switch to the "new style" gadget framework.

Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/ci13xxx_udc.c