From: Sergei Shtylyov <sshtylyov@mvista.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] MX51: mx51evk: Use struct to access SRSR register instead of offset
Date: Wed, 13 Apr 2011 14:22:48 +0400 [thread overview]
Message-ID: <4DA57978.1070005@mvista.com> (raw)
In-Reply-To: <1302663725-32748-1-git-send-email-festevam@gmail.com>
Hello.
On 13-04-2011 7:02, Fabio Estevam wrote:
> Signed-off-by: Fabio Estevam<fabio.estevam@freescale.com>
> ---
> board/freescale/mx51evk/mx51evk.c | 6 +++++-
> 1 files changed, 5 insertions(+), 1 deletions(-)
> diff --git a/board/freescale/mx51evk/mx51evk.c b/board/freescale/mx51evk/mx51evk.c
> index 02a765d..3f2217c 100644
> --- a/board/freescale/mx51evk/mx51evk.c
> +++ b/board/freescale/mx51evk/mx51evk.c
> @@ -431,6 +431,10 @@ int board_late_init(void)
>
> int checkboard(void)
> {
> + u32 reset;
> + struct src *src_regs = (struct src *)SRC_BASE_ADDR;
Should be an emoty line here\.
> + reset = src_regs->srsr;
Why not declare this variable later than 'src_regs' and just initialize it?
WBR, Sergei
prev parent reply other threads:[~2011-04-13 10:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-13 3:02 [U-Boot] [PATCH] MX51: mx51evk: Use struct to access SRSR register instead of offset Fabio Estevam
2011-04-13 3:08 ` Jason Liu
2011-04-13 10:22 ` Sergei Shtylyov [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=4DA57978.1070005@mvista.com \
--to=sshtylyov@mvista.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox