arch/powerpc/cpu/mpc8220/fec.c: Fix compile warning
authorJoe Hershberger <joe.hershberger@ni.com>
Tue, 22 May 2012 07:56:10 +0000 (07:56 +0000)
committerJoe Hershberger <joe.hershberger@ni.com>
Tue, 22 May 2012 18:41:46 +0000 (13:41 -0500)
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>
arch/powerpc/cpu/mpc8220/fec.c

index 2053fea5713410709c1d7b936f360ddf1ed07c7a..aaf9be107af83fbdd7c1b6963b84ab2c76c7452b 100644 (file)
@@ -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;
                }
                /*