summaryrefslogtreecommitdiff
path: root/drivers/net/tsec.c
diff options
context:
space:
mode:
authorJoe Hershberger <joe.hershberger@ni.com>2012-05-21 09:46:36 +0000
committerJoe Hershberger <joe.hershberger@ni.com>2012-05-22 10:18:14 -0500
commitc8a60b5326cd322df5874badc8a6e37a601bdc37 (patch)
tree6fdc170f4ec4548130dda0d0975ad3aab190150f /drivers/net/tsec.c
parentc2996086c2b7b9574bf8eed6c9b971f44d7a81d3 (diff)
downloadu-boot-imx-c8a60b5326cd322df5874badc8a6e37a601bdc37.zip
u-boot-imx-c8a60b5326cd322df5874badc8a6e37a601bdc37.tar.gz
u-boot-imx-c8a60b5326cd322df5874badc8a6e37a601bdc37.tar.bz2
ppc: Fix warning in TSEC Ethernet driver
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>
Diffstat (limited to 'drivers/net/tsec.c')
-rw-r--r--drivers/net/tsec.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/tsec.c b/drivers/net/tsec.c
index 160bc05..3c1c8f0 100644
--- a/drivers/net/tsec.c
+++ b/drivers/net/tsec.c
@@ -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;