]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
usb: ci_udc: don't memalign() struct ci_req allocations
authorStephen Warren <swarren@nvidia.com>
Tue, 1 Jul 2014 17:41:18 +0000 (11:41 -0600)
committerMarek Vasut <marex@denx.de>
Wed, 2 Jul 2014 13:45:38 +0000 (15:45 +0200)
commit639e9903c20611772cb38433add6fe2383b9fabf
tree673744ff469e28814cec6bb3fe7d5619ff795b48
parent6ac15fda4e2b9ad45b7769037964110f7f597b5c
usb: ci_udc: don't memalign() struct ci_req allocations

struct ci_req is a purely software structure, and needs no specific
memory alignment. Hence, allocate it with calloc() rather than
memalign(). The use of memalign() was left-over from when struct ci_req
was going to hold the aligned bounce buffer, but this is now dynamically
allocated.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
drivers/usb/gadget/ci_udc.c