summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/f_audio.c
diff options
context:
space:
mode:
authorCliff Cai <cliff.cai@analog.com>2009-12-10 04:28:39 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2009-12-23 20:34:20 +0100
commitfeef1d952ee1e9ac074640d7029dbbe8501725c2 (patch)
treefba4643b1789198955e88345c958fc19a6748246 /drivers/usb/gadget/f_audio.c
parentUSB: audio gadget: fix wTotalLength calculation (diff)
downloadlinux-feef1d952ee1e9ac074640d7029dbbe8501725c2.tar.xz
linux-feef1d952ee1e9ac074640d7029dbbe8501725c2.zip
USB: audio gadget: free alsa devices when unloading
Signed-off-by: Cliff Cai <cliff.cai@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/gadget/f_audio.c')
-rw-r--r--drivers/usb/gadget/f_audio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/f_audio.c b/drivers/usb/gadget/f_audio.c
index 1ff420b7d72f..df77f6131c73 100644
--- a/drivers/usb/gadget/f_audio.c
+++ b/drivers/usb/gadget/f_audio.c
@@ -792,7 +792,7 @@ int __init audio_bind_config(struct usb_configuration *c)
return status;
add_fail:
- gaudio_cleanup(&audio->card);
+ gaudio_cleanup();
setup_fail:
kfree(audio);
return status;