USB: musb: fix put_device() call sequence
authorAjay Kumar Gupta <ajay.gupta@ti.com>
Mon, 3 Aug 2009 06:13:40 +0000 (11:43 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 23 Sep 2009 13:46:33 +0000 (06:46 -0700)
commitc740d0d80d385b178c319f3d6e627ade8f732488
tree081a38781b7348dcd15bf0581c543180df47e4c5
parentdb8be50c4307dac2b37305fc59c8dc0f978d09ea
USB: musb: fix put_device() call sequence

Invoke put_device(musb->xceiv->dev) before musb_platform_exit()as
xceiv is getting unregistered in musb_platform_exit().

Fixes put_device() panic when module insert/removal is performed
multiple times.

Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/musb/musb_core.c