USB: gadget: amd5536udc.c: fix error path
commitf34c25ed78df6d1297db2187bf5e58aaf6674183
authorRahul Ruikar <rahul.ruikar@gmail.com>
Wed, 20 Oct 2010 23:01:51 +0000 (20 16:01 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 22 Oct 2010 17:22:19 +0000 (22 10:22 -0700)
tree2326030c09f15b051e9aea5c3c5f658d83634eb0
parente581c8c8a957776db452afe316706242abcc1cdc
USB: gadget: amd5536udc.c: fix error path

In function udc_probe() call put_device() when device_register() fails.

Signed-off-by: Rahul Ruikar <rahul.ruikar@gmail.com>
Acked-by: Thomas Dahlmann <dahlmann.thomas@arcor.de>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/amd5536udc.c