[U-Boot] [RFC PATCH 02/13] net: Fix eth_get_dev_by_name() warning
Simon Glass
sjg at chromium.org
Sun Mar 1 17:33:28 CET 2015
This can return either udevice or eth_device, so deal with either.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
net/eth.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/eth.c b/net/eth.c
index 3b3cd84..4d7f9a2 100644
--- a/net/eth.c
+++ b/net/eth.c
@@ -914,7 +914,7 @@ void eth_set_current(void)
if (act == NULL) {
char *ethprime = getenv("ethprime");
- struct udevice *dev = NULL;
+ void *dev = NULL;
if (ethprime)
dev = eth_get_dev_by_name(ethprime);
--
2.2.0.rc0.207.ga3a616c
More information about the U-Boot
mailing list