diff options
author | Simon Glass <sjg@chromium.org> | 2016-01-30 15:45:14 -0700 |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2016-02-06 13:26:56 +0100 |
commit | a7c45ec4d63e773cf920cfedfb67e96fe0b8526a (patch) | |
tree | fa40104ef0535bb474e3a781d025065f04d98591 /net | |
parent | a187559e3d586891c917279044c5386d1b2adc6e (diff) | |
download | u-boot-imx-a7c45ec4d63e773cf920cfedfb67e96fe0b8526a.zip u-boot-imx-a7c45ec4d63e773cf920cfedfb67e96fe0b8526a.tar.gz u-boot-imx-a7c45ec4d63e773cf920cfedfb67e96fe0b8526a.tar.bz2 |
microblaze: Correct build error in eth-uclass.c
This fixes the following error when building microblaze-generic:
net/eth-uclass.c: In function 'eth_post_probe':
net/eth-uclass.c:466:18: error: 'gd' undeclared (first use in this function)
ops->start += gd->reloc_off;
Fixes: db9391e1 ("net: Move driver-model code into its own file")
Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'net')
-rw-r--r-- | net/eth-uclass.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/eth-uclass.c b/net/eth-uclass.c index a356a08..c15cc4d 100644 --- a/net/eth-uclass.c +++ b/net/eth-uclass.c @@ -14,6 +14,8 @@ #include <dm/uclass-internal.h> #include "eth_internal.h" +DECLARE_GLOBAL_DATA_PTR; + /** * struct eth_device_priv - private structure for each Ethernet device * |