diff options
author | Luotao Fu <l.fu@pengutronix.de> | 2010-01-12 10:28:31 +0100 |
---|---|---|
committer | Luotao Fu <l.fu@pengutronix.de> | 2010-01-12 10:28:31 +0100 |
commit | 83b99bb2cba053640ba776104bc9b29340b46fe9 (patch) | |
tree | 414f5a8ab04e3c6f6dac86e9ec2992ba11665ce1 | |
parent | 807c54488b9e02c9c32c769376bc4cbf79f3586d (diff) | |
download | libfsl-vpu-83b99bb2cba053640ba776104bc9b29340b46fe9.tar.gz libfsl-vpu-83b99bb2cba053640ba776104bc9b29340b46fe9.tar.xz |
fixed compile warnings
Signed-off-by: Luotao Fu <l.fu@pengutronix.de>
-rw-r--r-- | include/vpu_lib.h | 2 | ||||
-rw-r--r-- | src/vpu_lib.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/include/vpu_lib.h b/include/vpu_lib.h index 00fbf54..0b93d52 100644 --- a/include/vpu_lib.h +++ b/include/vpu_lib.h @@ -428,7 +428,7 @@ extern unsigned int system_rev; #define mxc_cpu_is_rev(rev) \ ((mxc_cpu_rev() == rev) ? 1 : ((mxc_cpu_rev() < rev) ? -1 : 2)) #define MXC_REV(type) \ -static inline int type## _rev (int rev) \ +static inline int type## _rev (unsigned int rev) \ { \ return (type() ? mxc_cpu_is_rev(rev) : 0); \ } diff --git a/src/vpu_lib.c b/src/vpu_lib.c index a31aea8..8a8b4ff 100644 --- a/src/vpu_lib.c +++ b/src/vpu_lib.c @@ -129,7 +129,8 @@ int vpu_ESDMISC_LHD(int disable) */ RetCode vpu_Init(void *cb) { - int i, err; + unsigned int i; + int err; volatile Uint32 data; Uint32 virt_codeBuf; CodecInst *pCodecInst; |