[PATCH 1/2] remove unused DECLARE_GLOBAL_DATA_PTR

Sascha Hauer s.hauer at pengutronix.de
Mon Aug 1 06:03:02 EDT 2011


Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 arch/arm/mach-netx/netx-cm.c |    1 -
 commands/loads.c             |    2 --
 2 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/arch/arm/mach-netx/netx-cm.c b/arch/arm/mach-netx/netx-cm.c
index 58b2042..ebf9901 100644
--- a/arch/arm/mach-netx/netx-cm.c
+++ b/arch/arm/mach-netx/netx-cm.c
@@ -245,7 +245,6 @@ unsigned short crc16(unsigned short crc, unsigned int data)
 
 int netx_cm_init(void)
 {
-	DECLARE_GLOBAL_DATA_PTR;
 	int i;
 	char buf[MAX_USER_ZONE_SIZE];
 	struct netx_cm_userarea *area;
diff --git a/commands/loads.c b/commands/loads.c
index 6e0dc7f..c6617a4 100644
--- a/commands/loads.c
+++ b/commands/loads.c
@@ -31,8 +31,6 @@
 #include <exports.h>
 #include <xyzModem.h>
 
-DECLARE_GLOBAL_DATA_PTR;
-
 static ulong load_serial (ulong offset);
 static int read_record (char *buf, ulong len);
 static int do_echo = 1;
-- 
1.7.5.4




More information about the barebox mailing list