From: Andrzej Pietrasiewicz Date: Tue, 3 Mar 2015 09:52:14 +0000 (+0100) Subject: usb: gadget: printer: call usb_add_function() last X-Git-Tag: omap-for-v4.1/fixes-rc1~167^2~55^2~58 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cee5cbff8d80ec2d10fe8070f229e95cc42443bf;p=pandora-kernel.git usb: gadget: printer: call usb_add_function() last Conversion to the new function interface requires splitting a _bind_config() function into two parts: allocation of container_of struct usb_function and invocation of usb_add_function(). This patch moves the latter to the end of the f_printer_bind_config() in order to enable conversion to the new interface. Signed-off-by: Andrzej Pietrasiewicz Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed