]> git.karo-electronics.de Git - linux-beck.git/commit
usb: gadget: at91_udc: Fix error path
authorRahul Ruikar <rahul.ruikar@gmail.com>
Wed, 9 Feb 2011 12:44:28 +0000 (13:44 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 17 Feb 2011 18:47:56 +0000 (10:47 -0800)
commit8ab10400a037a516cc846c338f879e5bd62497ce
treedea27c0e6bdef9f9d5ea6ecbf1a492948c94933b
parentb14e840d04dba211fbdc930247e379085623eacd
usb: gadget: at91_udc: Fix error path

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

Signed-off-by: Rahul Ruikar <rahul.ruikar@gmail.com>
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/at91_udc.c