]> git.sur5r.net Git - u-boot/blobdiff - drivers/usb/gadget/f_thor.c
Merge git://git.denx.de/u-boot-marvell
[u-boot] / drivers / usb / gadget / f_thor.c
index 2596b2ee4ab4e3d9f969659ee9595dcd1bc23129..ff1481ba372304f3f8f5af5be18ea2185a6d57b2 100644 (file)
@@ -18,6 +18,7 @@
 #include <errno.h>
 #include <common.h>
 #include <malloc.h>
+#include <memalign.h>
 #include <version.h>
 #include <linux/usb/ch9.h>
 #include <linux/usb/gadget.h>
@@ -775,7 +776,7 @@ static int thor_func_bind(struct usb_configuration *c, struct usb_function *f)
                goto fail;
        }
        dev->req->buf = memalign(CONFIG_SYS_CACHELINE_SIZE,
-                                gadget->ep0->maxpacket);
+                                THOR_PACKET_SIZE);
        if (!dev->req->buf) {
                status = -ENOMEM;
                goto fail;