summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/s3c_udc_otg_xfer_dma.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-04-26 02:34:44 +0000
committerAnatolij Gustschin <agust@denx.de>2012-04-30 16:54:51 +0200
commit6777a3cf73f621892afe938983918d2aea7730b5 (patch)
tree7c14bec563272f70afe3cdca3d589bfe9a6a553d /drivers/usb/gadget/s3c_udc_otg_xfer_dma.c
parent7b15e2bb9b1026925f0f98243cd6cf80bd3fb47d (diff)
lin_gadget: use common linux/compat.h
Merge our duplicate definitions with the common header. Also fix drivers/usb/gadget/s3c_udc_otg_xfer_dma.c to use min() instead of min_t() since we remove the latter from compat.h. Additionally use memalign() directly as the lin_gadget specific kmalloc() macro is removed from lin_gadget_compat.h by this patch. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Anatolij Gustschin <agust@denx.de> Cc: Lukasz Majewski <l.majewski@samsung.com>
Diffstat (limited to 'drivers/usb/gadget/s3c_udc_otg_xfer_dma.c')
-rw-r--r--drivers/usb/gadget/s3c_udc_otg_xfer_dma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/s3c_udc_otg_xfer_dma.c b/drivers/usb/gadget/s3c_udc_otg_xfer_dma.c
index afd4931fa0..56e6e53de6 100644
--- a/drivers/usb/gadget/s3c_udc_otg_xfer_dma.c
+++ b/drivers/usb/gadget/s3c_udc_otg_xfer_dma.c
@@ -168,7 +168,7 @@ int setdma_tx(struct s3c_ep *ep, struct s3c_request *req)
length = req->req.length - req->req.actual;
if (ep_num == EP0_CON)
- length = min_t(length, (u32)ep_maxpacket(ep));
+ length = min(length, (u32)ep_maxpacket(ep));
ep->len = length;
ep->dma_buf = buf;