diff options
author | Alex Sadovsky <nable.maininbox@googlemail.com> | 2015-01-08 20:51:10 +0300 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2015-01-18 12:31:01 +0100 |
commit | c0978a94aa4eab52e8c634ac0a43af4b411921e3 (patch) | |
tree | bec99eec185d678d4f70f93db8972c2a03859d34 /drivers/block/sata_dwc.h | |
parent | 1fd81b7c23705eb46fd80d1eccb68fa8697cf348 (diff) | |
download | u-boot-imx-c0978a94aa4eab52e8c634ac0a43af4b411921e3.zip u-boot-imx-c0978a94aa4eab52e8c634ac0a43af4b411921e3.tar.gz u-boot-imx-c0978a94aa4eab52e8c634ac0a43af4b411921e3.tar.bz2 |
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: Alex Sadovsky <Nable.MainInbox@googlemail.com>
Diffstat (limited to 'drivers/block/sata_dwc.h')
0 files changed, 0 insertions, 0 deletions