Skip to content
Commit c0978a94 authored by Alex Sadovsky's avatar Alex Sadovsky Committed by Marek Vasut
Browse files

usb: gadget: pxa25x_udc: fix use-before-initialized bug



Fix use-before-initialized bug in pxa25x_udc driver.

Function usb_gadget_register_driver calls udc_disable,
and udc_disable calls pullup_off that uses dev->mach->udc_command.
But dev->mach is initialized in usb_gadget_register_driver after
calling udc_disable. This patch fixes the order of initialization.

Signed-off-by: default avatarAlex Sadovsky <Nable.MainInbox@googlemail.com>
parent 1fd81b7c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment