From: Andrzej Pietrasiewicz Date: Tue, 22 Jul 2014 17:58:29 +0000 (+0200) Subject: usb: gadget: audio: Use container_of to free audio_dev X-Git-Tag: fixes-for-v3.18-merge-window~16^2~118^2~85 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d73abf2a77a090ca4c920ac99c8ec0e272398a9;p=pandora-kernel.git usb: gadget: audio: Use container_of to free audio_dev Eliminate static struct *agdev_g from f_uac2.c. It is used for freeing its memory, but the same address can be found by calling container_of in afunc_unbind(). This implies eliminating uac2_unbind_config(). The audio_config_driver in audio.c does not have its unbind method any more. It has been used only when uac2 is used, so uac2 itself can handle unbinding in afunc_unbind(). Tested-by: Sebastian Reimers Signed-off-by: Andrzej Pietrasiewicz Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed