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)
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>

No differences found