From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] nios2: add generic board support
Date: Thu, 21 Aug 2014 12:01:00 +0200 [thread overview]
Message-ID: <53F5C35C.6070007@denx.de> (raw)
In-Reply-To: <1408611206-4226-1-git-send-email-thomas@wytron.com.tw>
On 21.08.2014 10:53, Thomas Chou wrote:
> This patch implements the generic board init as described in
> doc/README.generic-board.
Good idea. Please find below a few comments, mostly coding style related.
<snip>
> diff --git a/arch/nios2/cpu/cpu.c b/arch/nios2/cpu/cpu.c
> index e0dcbc2..4714171 100644
> --- a/arch/nios2/cpu/cpu.c
> +++ b/arch/nios2/cpu/cpu.c
> @@ -10,11 +10,13 @@
> #include <nios2-io.h>
> #include <asm/cache.h>
>
> +DECLARE_GLOBAL_DATA_PTR;
> +
> #if defined (CONFIG_SYS_NIOS_SYSID_BASE)
> extern void display_sysid (void);
> #endif /* CONFIG_SYS_NIOS_SYSID_BASE */
>
> -int checkcpu (void)
> +int print_cpuinfo (void)
While changing this line, please fix the coding style to:
+int print_cpuinfo(void)
No space before the "(".
<snip>
> diff --git a/common/board_f.c b/common/board_f.c
> index d5e7622..77a1990 100644
> --- a/common/board_f.c
> +++ b/common/board_f.c
> @@ -9,7 +9,6 @@
> *
> * SPDX-License-Identifier: GPL-2.0+
> */
> -
> #include <common.h>
This empty line removal seems to have slipped in. I know, its
nitpicking, but I would prefer to not change unrelated things.
Otherwise looks good:
Reviewed-by: Stefan Roese <sr@denx.de>
Thanks,
Stefan
next prev parent reply other threads:[~2014-08-21 10:01 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-21 8:53 [U-Boot] [PATCH] nios2: add generic board support Thomas Chou
2014-08-21 10:01 ` Stefan Roese [this message]
2014-08-21 12:11 ` [U-Boot] [PATCH v2] " Thomas Chou
2014-08-22 9:20 ` [U-Boot] [PATCH v3] " Thomas Chou
2014-08-24 3:45 ` Thomas Chou
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=53F5C35C.6070007@denx.de \
--to=sr@denx.de \
--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.