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

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


Fix this:
enc28j60.c: In function 'enc28j60_initialize':
enc28j60.c:967: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/enc28j60.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/enc28j60.c b/drivers/net/enc28j60.c
index e2011ae..c55667c 100644
--- a/drivers/net/enc28j60.c
+++ b/drivers/net/enc28j60.c
@@ -875,7 +875,7 @@ static int enc_recv(struct eth_device *dev)
  */
 static int enc_send(
 	struct eth_device *dev,
-	volatile void *packet,
+	void *packet,
 	int length)
 {
 	enc_dev_t *enc = dev->priv;
-- 
1.6.0.2



More information about the U-Boot mailing list