]> git.baikalelectronics.ru Git - kernel.git/commit
usb: musb: gadget: beautify usb_gadget_probe_driver()/usb_gadget_unregister_driver
authorFelipe Balbi <balbi@ti.com>
Mon, 17 Jan 2011 08:34:38 +0000 (10:34 +0200)
committerFelipe Balbi <balbi@ti.com>
Thu, 17 Feb 2011 19:11:46 +0000 (21:11 +0200)
commitcc5e3c143125d967bea685f5c9ca5e07f914257e
treeb98dace65687fd00d088df0fb5fcd25a93fa0523
parentb5da8c6f27d01485d99921354276af0b52e8b43c
usb: musb: gadget: beautify usb_gadget_probe_driver()/usb_gadget_unregister_driver

Just a few cosmetic fixes to usb_gadget_probe_driver()
and usb_gadget_unregister_driver().

Decreased a few indentation levels with goto statements.

While at that, also add the missing call to musb_stop().
If we don't have OTG, there's no point of leaving
MUSB prepared for operation if a gadget driver fails
to probe. The same is valid for usb_gadget_unregister_driver(),
since we are removing the gadget driver and we don't have
OTG, we can completely unconfigure MUSB.

Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/musb_gadget.c