diff options
author | Michal Nazarewicz <m.nazarewicz@samsung.com> | 2010-06-21 13:57:08 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-08-10 14:35:37 -0700 |
commit | 3f3e12d050052032a51f75e72e540322e2a7da2b (patch) | |
tree | 3e90bb116993c31f1702a540a675626a29cce229 /drivers | |
parent | c7ba692294ef2f69a76b24b2ad45fc6c0ac0d497 (diff) | |
download | linux-3.10-3f3e12d050052032a51f75e72e540322e2a7da2b.tar.gz linux-3.10-3f3e12d050052032a51f75e72e540322e2a7da2b.tar.bz2 linux-3.10-3f3e12d050052032a51f75e72e540322e2a7da2b.zip |
USB: gadget: composite: added disconnect callback
Added a disconnect() callback to composite devices which
is called by composite glue when its disconnect callback
is called by gadget.
Signed-off-by: Michal Nazarewicz <m.nazarewicz@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/gadget/composite.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/composite.c index 125167e17ce..e483f80822d 100644 --- a/drivers/usb/gadget/composite.c +++ b/drivers/usb/gadget/composite.c @@ -956,6 +956,8 @@ static void composite_disconnect(struct usb_gadget *gadget) spin_lock_irqsave(&cdev->lock, flags); if (cdev->config) reset_config(cdev); + if (composite->disconnect) + composite->disconnect(cdev); spin_unlock_irqrestore(&cdev->lock, flags); } |