]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
ppc: Fix warning in TSEC Ethernet driver
authorJoe Hershberger <joe.hershberger@ni.com>
Mon, 21 May 2012 09:46:36 +0000 (09:46 +0000)
committerJoe Hershberger <joe.hershberger@ni.com>
Tue, 22 May 2012 15:18:14 +0000 (10:18 -0500)
Fixes:
tsec.c: In function 'tsec_initialize':
tsec.c:638:12: warning: assignment from incompatible pointer type

Tested on MPC8313e-RDB

Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
drivers/net/tsec.c

index 160bc0597d680fee4befaadda1b3412e2093b62b..3c1c8f0799c4177a1a4371e7cda27855510e61ec 100644 (file)
@@ -44,8 +44,7 @@ static RTXBD rtx __attribute__ ((aligned(8)));
 #error "rtx must be 64-bit aligned"
 #endif
 
-static int tsec_send(struct eth_device *dev,
-       volatile void *packet, int length);
+static int tsec_send(struct eth_device *dev, void *packet, int length);
 
 /* Default initializations for TSEC controllers. */
 
@@ -377,7 +376,7 @@ static void startup_tsec(struct eth_device *dev)
  * do the same.         Presumably, this would be zero if there were no
  * errors
  */
-static int tsec_send(struct eth_device *dev, volatile void *packet, int length)
+static int tsec_send(struct eth_device *dev, void *packet, int length)
 {
        int i;
        int result = 0;