summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuotao Fu <lfu@pengutronix.de>2009-10-06 13:01:41 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2009-10-06 13:01:41 +0200
commitc278c1d83d5fd498149a0017c5f0e1225b50235f (patch)
treefacb90cb507b4831bffac3ed42f2ec4449121d70
parentef02d72eb5985f7e2c3049da75265e74677c6fbb (diff)
downloadlibfsl-vpu-c278c1d83d5fd498149a0017c5f0e1225b50235f.tar.gz
libfsl-vpu-c278c1d83d5fd498149a0017c5f0e1225b50235f.tar.xz
fix compiler warnings
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--include/vpu_lib.h2
-rw-r--r--src/vpu_lib.c4
-rw-r--r--src/vpu_reg.h2
3 files changed, 5 insertions, 3 deletions
diff --git a/include/vpu_lib.h b/include/vpu_lib.h
index 88e55da..1e76826 100644
--- a/include/vpu_lib.h
+++ b/include/vpu_lib.h
@@ -425,7 +425,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 (uint rev) \
{ \
return (type() ? mxc_cpu_is_rev(rev) : 0); \
}
diff --git a/src/vpu_lib.c b/src/vpu_lib.c
index e58dc5d..0efdef3 100644
--- a/src/vpu_lib.c
+++ b/src/vpu_lib.c
@@ -129,9 +129,9 @@ int vpu_ESDMISC_LHD(int disable)
*/
RetCode vpu_Init(void *cb)
{
- int i, err;
+ int err;
volatile Uint32 data;
- Uint32 virt_codeBuf;
+ Uint32 virt_codeBuf, i;
CodecInst *pCodecInst;
err = IOSystemInit(cb);
diff --git a/src/vpu_reg.h b/src/vpu_reg.h
index 6ad9a73..49342bd 100644
--- a/src/vpu_reg.h
+++ b/src/vpu_reg.h
@@ -24,6 +24,8 @@
#ifndef __VPU__REG__H
#define __VPU__REG__H
+#define IMX27ADS
+
/*---------------------------------------------------------------------------
* HARDWARE REGISTER
*-------------------------------------------------------------------------*/