[U-Boot] [PATCH] drivers/net/cs8900.c: Fix compile warning

Joe Hershberger joe.hershberger at ni.com
Tue May 22 02:45:21 CEST 2012


Fix this:
cs8900.c: In function 'cs8900_initialize':
cs8900.c:326:12: warning: assignment from incompatible pointer type

Signed-off-by: Joe Hershberger <joe.hershberger at ni.com>
Cc Joe Hershberger <joe.hershberger at gmail.com>
---
 drivers/net/cs8900.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/drivers/net/cs8900.c b/drivers/net/cs8900.c
index e04a784..6aaa0cf 100644
--- a/drivers/net/cs8900.c
+++ b/drivers/net/cs8900.c
@@ -215,8 +215,7 @@ static int cs8900_recv(struct eth_device *dev)
 }
 
 /* Send a data block via Ethernet. */
-static int cs8900_send(struct eth_device *dev,
-			volatile void *packet, int length)
+static int cs8900_send(struct eth_device *dev, void *packet, int length)
 {
 	volatile u16 *addr;
 	int tmo;
-- 
1.6.0.2



More information about the U-Boot mailing list