From: Simon Glass Date: Sat, 30 Jan 2016 22:45:14 +0000 (-0700) Subject: microblaze: Correct build error in eth-uclass.c X-Git-Tag: v2016.03-rc2~92^2~9 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a7c45ec4d63e773cf920cfedfb67e96fe0b8526a;p=u-boot 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 Acked-by: Joe Hershberger --- diff --git a/net/eth-uclass.c b/net/eth-uclass.c index a356a08826..c15cc4d90b 100644 --- a/net/eth-uclass.c +++ b/net/eth-uclass.c @@ -14,6 +14,8 @@ #include #include "eth_internal.h" +DECLARE_GLOBAL_DATA_PTR; + /** * struct eth_device_priv - private structure for each Ethernet device *