[U-Boot] [PATCH] drivers/net/4xx_enet.c: Fix build warning

Anatolij Gustschin agust at denx.de
Mon May 21 22:48:18 CEST 2012


Fix:
4xx_enet.c: In function 'ppc_4xx_eth_initialize':
4xx_enet.c:2029: warning: assignment from incompatible pointer type

Tested on sequoia board.

Signed-off-by: Anatolij Gustschin <agust at denx.de>
Tested-by: Anatolij Gustschin <agust at denx.de>
Cc: Joe Hershberger <joe.hershberger at gmail.com>
---
 drivers/net/4xx_enet.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/drivers/net/4xx_enet.c b/drivers/net/4xx_enet.c
index 73700dd..7c6e362 100644
--- a/drivers/net/4xx_enet.c
+++ b/drivers/net/4xx_enet.c
@@ -1557,8 +1557,7 @@ get_speed:
 }
 
 
-static int ppc_4xx_eth_send (struct eth_device *dev, volatile void *ptr,
-			      int len)
+static int ppc_4xx_eth_send(struct eth_device *dev, void *ptr, int len)
 {
 	struct enet_frame *ef_ptr;
 	ulong time_start, time_now;
-- 
1.7.1



More information about the U-Boot mailing list