diff options
author | Troy Kisky <troy.kisky@boundarydevices.com> | 2013-09-25 18:41:14 -0700 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2013-10-20 23:42:39 +0200 |
commit | 01773ccc0d8d421935dd6ee51b222221a87620ad (patch) | |
tree | 4e8861a5163e3af3cbb1dbf887129d42c77b555e /drivers | |
parent | 5fc2e99732367e7048f8e29592ef2d7aa7d10d14 (diff) | |
download | u-boot-01773ccc0d8d421935dd6ee51b222221a87620ad.zip u-boot-01773ccc0d8d421935dd6ee51b222221a87620ad.tar.gz u-boot-01773ccc0d8d421935dd6ee51b222221a87620ad.tar.bz2 |
usb: gadget: mv_udc: zero transfer descriptor memory on probe
Since we flush the TD, we may as well set it to a known value.
Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/gadget/mv_udc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/gadget/mv_udc.c b/drivers/usb/gadget/mv_udc.c index c56ccff..f91af7e 100644 --- a/drivers/usb/gadget/mv_udc.c +++ b/drivers/usb/gadget/mv_udc.c @@ -626,6 +626,7 @@ static int mvudc_probe(void) free(controller.epts); return -ENOMEM; } + memset(controller.items_mem, 0, ilist_sz); for (i = 0; i < 2 * NUM_ENDPOINTS; i++) { /* |