usb: gadget: at91_udc: Fix error path
authorRahul Ruikar <[email protected]>
Wed, 9 Feb 2011 12:44:28 +0000 (13:44 +0100)
committerGreg Kroah-Hartman <[email protected]>
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 <[email protected]>
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/usb/gadget/at91_udc.c