diff options
author | Tom Rini <trini@konsulko.com> | 2018-04-18 13:50:47 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-04-27 14:54:48 -0400 |
commit | d024236e5a31a2b4b82cbcc98b31b8170fc88d28 (patch) | |
tree | ab4d96f1b0c5e3991b97708f72679a7af7234222 /cmd | |
parent | f1b1f77060beadbfe9f42a3be00019bd025afbd6 (diff) | |
download | u-boot-d024236e5a31a2b4b82cbcc98b31b8170fc88d28.zip u-boot-d024236e5a31a2b4b82cbcc98b31b8170fc88d28.tar.gz u-boot-d024236e5a31a2b4b82cbcc98b31b8170fc88d28.tar.bz2 |
Remove unnecessary instances of DECLARE_GLOBAL_DATA_PTR
We have a large number of places where while we historically referenced
gd in the code we no longer do, as well as cases where the code added
that line "just in case" during development and never dropped it.
Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/aes.c | 2 | ||||
-rw-r--r-- | cmd/blob.c | 2 | ||||
-rw-r--r-- | cmd/booti.c | 2 | ||||
-rw-r--r-- | cmd/cros_ec.c | 2 | ||||
-rw-r--r-- | cmd/i2c.c | 2 |
5 files changed, 0 insertions, 10 deletions
@@ -14,8 +14,6 @@ #include <asm/byteorder.h> #include <linux/compiler.h> -DECLARE_GLOBAL_DATA_PTR; - /** * do_aes() - Handle the "aes" command-line command * @cmdtp: Command data struct pointer @@ -12,8 +12,6 @@ #include <asm/byteorder.h> #include <linux/compiler.h> -DECLARE_GLOBAL_DATA_PTR; - /** * blob_decap() - Decapsulate the data as a blob * @key_mod: - Pointer to key modifier/key diff --git a/cmd/booti.c b/cmd/booti.c index fff9369..f1e607a 100644 --- a/cmd/booti.c +++ b/cmd/booti.c @@ -14,8 +14,6 @@ #include <linux/kernel.h> #include <linux/sizes.h> -DECLARE_GLOBAL_DATA_PTR; - /* * Image booting support */ diff --git a/cmd/cros_ec.c b/cmd/cros_ec.c index af0b4ee..c1e2850 100644 --- a/cmd/cros_ec.c +++ b/cmd/cros_ec.c @@ -17,8 +17,6 @@ /* Note: depends on enum ec_current_image */ static const char * const ec_current_image_name[] = {"unknown", "RO", "RW"}; -DECLARE_GLOBAL_DATA_PTR; - /** * Decode a flash region parameter * @@ -79,8 +79,6 @@ #include <asm/byteorder.h> #include <linux/compiler.h> -DECLARE_GLOBAL_DATA_PTR; - /* Display values from last command. * Memory modify remembered values are different from display memory. */ |