]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
microblaze: Correct build error in eth-uclass.c
authorSimon Glass <sjg@chromium.org>
Sat, 30 Jan 2016 22:45:14 +0000 (15:45 -0700)
committerAnatolij Gustschin <agust@denx.de>
Sat, 6 Feb 2016 12:26:56 +0000 (13:26 +0100)
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>
net/eth-uclass.c

index a356a088262d333e578d5723f6d680db0da2d466..c15cc4d90bf47dffacdd1339077340b0c99dd36a 100644 (file)
@@ -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
  *