]> git.baikalelectronics.ru Git - kernel.git/commit
usb: gadget: printer: call gprinter_setup() from gadget's bind
authorAndrzej Pietrasiewicz <andrzej.p@samsung.com>
Tue, 3 Mar 2015 09:52:19 +0000 (10:52 +0100)
committerFelipe Balbi <balbi@ti.com>
Tue, 10 Mar 2015 20:33:37 +0000 (15:33 -0500)
commit9484f620d70a64eb1926f02ae034dd02d00ebec7
tree381e935e9c7ffe59f81b9a479eb1d235d86cc724
parentd24b565bb472f707c60847adc7455f98c2233c21
usb: gadget: printer: call gprinter_setup() from gadget's bind

Call gprinter_setup() from gadget's bind instead of module's init.
Call gprinter_cleaup() corerspondingly. This detaches printer function's
logic from legacy printer gadget's implementation.

Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/legacy/printer.c