commit | 6405a159ed386bdd915889dff52ff9d300326887 | [log] [tgz] |
---|---|---|
author | Wolfgang Denk <wd@pollux.denx.de> | Fri Mar 31 18:32:53 2006 +0200 |
committer | Wolfgang Denk <wd@pollux.denx.de> | Fri Mar 31 18:32:53 2006 +0200 |
tree | 514fc21eec39a2dd57f7aea516844a4400f8f140 | |
parent | 7154013f861b5722efd645131c0b7f8a5d74d073 [diff] [blame] |
GCC-4.x fixes: clean up global data pointer initialization for all boards.
diff --git a/common/cmd_date.c b/common/cmd_date.c index a569d78..84932f7 100644 --- a/common/cmd_date.c +++ b/common/cmd_date.c
@@ -28,6 +28,8 @@ #include <command.h> #include <rtc.h> +DECLARE_GLOBAL_DATA_PTR; + #if (CONFIG_COMMANDS & CFG_CMD_DATE) const char *weekdays[] = { @@ -40,7 +42,6 @@ int do_date (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) { - DECLARE_GLOBAL_DATA_PTR; struct rtc_time tm; int rcode = 0;