All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matthias Fuchs <matthias.fuchs@esd.eu>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] pmc405de and zeus: remove the env_ptr externs
Date: Tue, 02 Oct 2012 11:34:10 +0200	[thread overview]
Message-ID: <506AB512.306@esd.eu> (raw)
In-Reply-To: <1348826686-28067-1-git-send-email-grinberg@compulab.co.il>

Hi Igor,

you are right. Thanks. You can add my 

Acked-by: Matthias Fuchs <matthias.fuchs@esd.eu>

Matthias

On 09/28/2012 12:04 PM, Igor Grinberg wrote:
> The env_ptr is already declared in environment.h, so there is no need to
> redeclare in board files (especially after including the environment.h)
> Remove those declarations.
> 
> Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
> Cc: Stefan Roese <sr@denx.de>
> Cc: Matthias Fuchs <matthias.fuchs@esd-electronics.com>
> ---
> Stefan, Matthias,
> I'm sending from my laptop (not my main development machine) which
> does not have the ppc tool chain installed, can you please compile
> test these two boards? Thanks!
> 
>  board/esd/pmc405de/pmc405de.c |    1 -
>  board/zeus/zeus.c             |    1 -
>  2 files changed, 0 insertions(+), 2 deletions(-)
> 
> diff --git a/board/esd/pmc405de/pmc405de.c b/board/esd/pmc405de/pmc405de.c
> index a60809a..279d7d4 100644
> --- a/board/esd/pmc405de/pmc405de.c
> +++ b/board/esd/pmc405de/pmc405de.c
> @@ -415,7 +415,6 @@ U_BOOT_CMD(eepwren, 2, 0, do_eep_wren,
>  
>  #if defined(CONFIG_PRAM)
>  #include <environment.h>
> -extern env_t *env_ptr;
>  
>  int do_painit(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
>  {
> diff --git a/board/zeus/zeus.c b/board/zeus/zeus.c
> index 272e59b..e7b2f4d 100644
> --- a/board/zeus/zeus.c
> +++ b/board/zeus/zeus.c
> @@ -39,7 +39,6 @@ DECLARE_GLOBAL_DATA_PTR;
>  #define REBOOT_DO_POST	0x00000001
>  
>  extern flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips	*/
> -extern env_t *env_ptr;
>  
>  ulong flash_get_size(ulong base, int banknum);
>  void env_crc_update(void);
> 


-- 
-------------------------------------------------------------------------
Dipl.-Ing. Matthias Fuchs
Head of System Design

esd electronic system design gmbh
Vahrenwalder Str. 207 - 30165 Hannover - GERMANY
Phone: +49-511-37298-0 - Fax: +49-511-37298-68
Please visit our homepage http://www.esd.eu
Quality Products - Made in Germany
-------------------------------------------------------------------------
Gesch?ftsf?hrer: Klaus Detering
Amtsgericht Hannover HRB 51373 - VAT-ID DE 115672832
-------------------------------------------------------------------------

      parent reply	other threads:[~2012-10-02  9:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-28 10:04 [U-Boot] [PATCH] pmc405de and zeus: remove the env_ptr externs Igor Grinberg
2012-09-28 10:18 ` Stefan Roese
2012-10-02  9:34 ` Matthias Fuchs [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=506AB512.306@esd.eu \
    --to=matthias.fuchs@esd.eu \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.