[U-Boot] [PATCH] net: Fix smc911x Ethernet driver warning

Joe Hershberger joe.hershberger at ni.com
Mon May 21 19:21:53 CEST 2012


Fix this warning:
smc911x.c: In function 'smc911x_initialize':
smc911x.c:288:12: warning: assignment from incompatible pointer type [enabled by default]

Tested on omap3_overo

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

diff --git a/drivers/net/smc911x.c b/drivers/net/smc911x.c
index e34b487..3911989 100644
--- a/drivers/net/smc911x.c
+++ b/drivers/net/smc911x.c
@@ -162,7 +162,7 @@ static int smc911x_init(struct eth_device *dev, bd_t * bd)
 }
 
 static int smc911x_send(struct eth_device *dev,
-			volatile void *packet, int length)
+			void *packet, int length)
 {
 	u32 *data = (u32*)packet;
 	u32 tmplen;
-- 
1.6.0.2



More information about the U-Boot mailing list