summaryrefslogtreecommitdiff
path: root/arch/powerpc
diff options
context:
space:
mode:
authorJoe Hershberger <joe.hershberger@ni.com>2012-05-22 07:56:10 +0000
committerJoe Hershberger <joe.hershberger@ni.com>2012-05-22 13:41:46 -0500
commit3573c327a627b5d309118fccb1a58ffb39660116 (patch)
treeb3a51a8dc975f2bbff4e3e93e78d57c3c54a6978 /arch/powerpc
parent9f09864003a74a1e3530eef42460eafa509ad210 (diff)
downloadu-boot-imx-3573c327a627b5d309118fccb1a58ffb39660116.zip
u-boot-imx-3573c327a627b5d309118fccb1a58ffb39660116.tar.gz
u-boot-imx-3573c327a627b5d309118fccb1a58ffb39660116.tar.bz2
arch/powerpc/cpu/mpc8220/fec.c: Fix compile warning
Fix this: fec.c: In function 'mpc8220_fec_recv': fec.c:791:9: warning: passing argument 1 of 'NetReceive' discards qualifiers from pointer target type include/net.h:438:13: note: expected 'uchar *' but argument is of type 'volatile uchar *' fec.c: In function 'mpc8220_fec_initialize': fec.c:839:12: warning: assignment from incompatible pointer type Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/cpu/mpc8220/fec.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/powerpc/cpu/mpc8220/fec.c b/arch/powerpc/cpu/mpc8220/fec.c
index 2053fea..aaf9be1 100644
--- a/arch/powerpc/cpu/mpc8220/fec.c
+++ b/arch/powerpc/cpu/mpc8220/fec.c
@@ -624,7 +624,7 @@ static void rfifo_print (char *devname, mpc8220_fec_priv * fec)
/********************************************************************/
-static int mpc8220_fec_send (struct eth_device *dev, volatile void *eth_data,
+static int mpc8220_fec_send(struct eth_device *dev, void *eth_data,
int data_length)
{
/*
@@ -787,8 +787,7 @@ static int mpc8220_fec_recv (struct eth_device *dev)
*/
/* memcpy(buff, frame->head, 14);
memcpy(buff + 14, frame->data, frame_length);*/
- NetReceive ((volatile uchar *) pRbd->dataPointer,
- frame_length);
+ NetReceive((uchar *)pRbd->dataPointer, frame_length);
len = frame_length;
}
/*