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

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


Fix this:
dnet.c: In function 'dnet_eth_initialize':
dnet.c:380:15: 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/dnet.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/drivers/net/dnet.c b/drivers/net/dnet.c
index 15d0a6e..944a0c0 100644
--- a/drivers/net/dnet.c
+++ b/drivers/net/dnet.c
@@ -130,8 +130,7 @@ static u16 dnet_mdio_read(struct dnet_device *dnet, u8 reg)
 	return value;
 }
 
-static int dnet_send(struct eth_device *netdev, volatile void *packet,
-		     int length)
+static int dnet_send(struct eth_device *netdev, void *packet, int length)
 {
 	struct dnet_device *dnet = to_dnet(netdev);
 	int i, wrsz;
-- 
1.6.0.2



More information about the U-Boot mailing list