summaryrefslogtreecommitdiff
path: root/common/usb.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-04-04 18:44:53 +0000
committerMarek Vasut <marex@denx.de>2012-05-20 08:32:31 +0200
commit66cf64107b891d1cc8112ff76b5687195af2f5b0 (patch)
treebfed561ec234bd547f6658ab573f369fb3461c93 /common/usb.c
parentf50bf50d7f6f99c5ad4666d63a7eef43d3940500 (diff)
downloadu-boot-imx-66cf64107b891d1cc8112ff76b5687195af2f5b0.zip
u-boot-imx-66cf64107b891d1cc8112ff76b5687195af2f5b0.tar.gz
u-boot-imx-66cf64107b891d1cc8112ff76b5687195af2f5b0.tar.bz2
usb: use noinline define
Building usb for Blackfin boards fails as we get linux/compiler.h included which expands the "noinline" inside of the attribute and we get attribute(attribute(noinline)). Explicitly use the helper define to avoid this. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'common/usb.c')
-rw-r--r--common/usb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/usb.c b/common/usb.c
index 1ec30bc..71b4b2b 100644
--- a/common/usb.c
+++ b/common/usb.c
@@ -47,6 +47,7 @@
#include <common.h>
#include <command.h>
#include <asm/processor.h>
+#include <linux/compiler.h>
#include <linux/ctype.h>
#include <asm/byteorder.h>
#include <asm/unaligned.h>
@@ -261,7 +262,7 @@ int usb_maxpacket(struct usb_device *dev, unsigned long pipe)
*
* NOTE: Similar behaviour was observed with GCC4.6 on ARMv5.
*/
-static void __attribute__((noinline))
+static void noinline
usb_set_maxpacket_ep(struct usb_device *dev, int if_idx, int ep_idx)
{
int b;