Commit 3f886620 authored by karl beldan's avatar karl beldan Committed by Greg Kroah-Hartman

USB: pxa27x_udc - Fix Oops

udc_disable oopses dereferencing udc_command.
Signed-off-by: default avatarKarl Beldan <karl.beldan@gmail.com>
Acked-by: default avatarRobert Jarzmik <rjarzmik@free.fr>
Acked-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 1b2d23d4
......@@ -1526,6 +1526,7 @@ static void udc_disable(struct pxa_udc *udc)
ep0_idle(udc);
udc->gadget.speed = USB_SPEED_UNKNOWN;
if (udc->mach->udc_command)
udc->mach->udc_command(PXA2XX_UDC_CMD_DISCONNECT);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment