]> git.sur5r.net Git - u-boot/commit
lin_gadget: use common linux/compat.h
authorMike Frysinger <vapier@gentoo.org>
Thu, 26 Apr 2012 02:34:44 +0000 (02:34 +0000)
committerAnatolij Gustschin <agust@denx.de>
Mon, 30 Apr 2012 14:54:51 +0000 (16:54 +0200)
commit6777a3cf73f621892afe938983918d2aea7730b5
tree7c14bec563272f70afe3cdca3d589bfe9a6a553d
parent7b15e2bb9b1026925f0f98243cd6cf80bd3fb47d
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>
drivers/usb/gadget/s3c_udc_otg.c
drivers/usb/gadget/s3c_udc_otg_xfer_dma.c
include/linux/compat.h
include/usb/lin_gadget_compat.h