From: John Crispin <john@phrozen.org>
To: Rob Herring <robherring2@gmail.com>
Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org,
Grant Likely <grant.likely@linaro.org>,
Rob Herring <rob.herring@calxeda.com>,
Ralf Baechle <ralf@linux-mips.org>,
linux-mips@linux-mips.org
Subject: Re: [PATCH 28/28] mips: use common of_flat_dt_get_machine_name
Date: Tue, 17 Sep 2013 06:32:34 +0200 [thread overview]
Message-ID: <5237DB62.2060303@phrozen.org> (raw)
In-Reply-To: <1379372965-22359-29-git-send-email-robherring2@gmail.com>
On 17/09/13 01:09, Rob Herring wrote:
> From: Rob Herring<rob.herring@calxeda.com>
>
> Convert mips to use the common of_flat_dt_get_machine_name function.
>
> Signed-off-by: Rob Herring<rob.herring@calxeda.com>
> Cc: Ralf Baechle<ralf@linux-mips.org>
> Cc: linux-mips@linux-mips.org
> ---
Acked-by: John Crispin <blogic@openwrt.org>
Thanks for this series ...
> arch/mips/kernel/prom.c | 15 +--------------
> 1 file changed, 1 insertion(+), 14 deletions(-)
>
> diff --git a/arch/mips/kernel/prom.c b/arch/mips/kernel/prom.c
> index 0b2485f..3c3b0df 100644
> --- a/arch/mips/kernel/prom.c
> +++ b/arch/mips/kernel/prom.c
> @@ -47,24 +47,11 @@ void * __init early_init_dt_alloc_memory_arch(u64 size, u64 align)
> return __alloc_bootmem(size, align, __pa(MAX_DMA_ADDRESS));
> }
>
> -int __init early_init_dt_scan_model(unsigned long node, const char *uname,
> - int depth, void *data)
> -{
> - if (!depth) {
> - char *model = of_get_flat_dt_prop(node, "model", NULL);
> -
> - if (model)
> - mips_set_machine_name(model);
> - }
> - return 0;
> -}
> -
> void __init __dt_setup_arch(struct boot_param_header *bph)
> {
> if (!early_init_dt_scan(bph))
> return;
>
> - /* try to load the mips machine name */
> - of_scan_flat_dt(early_init_dt_scan_model, NULL);
> + mips_set_machine_name(of_flat_dt_get_machine_name());
> }
> #endif
prev parent reply other threads:[~2013-09-17 4:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1379372965-22359-1-git-send-email-robherring2@gmail.com>
2013-09-16 23:09 ` [PATCH 15/28] mips: use early_init_dt_scan Rob Herring
2013-09-17 4:32 ` John Crispin
2013-09-16 23:09 ` [PATCH 28/28] mips: use common of_flat_dt_get_machine_name Rob Herring
2013-09-17 4:32 ` John Crispin [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=5237DB62.2060303@phrozen.org \
--to=john@phrozen.org \
--cc=devicetree@vger.kernel.org \
--cc=grant.likely@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@linux-mips.org \
--cc=ralf@linux-mips.org \
--cc=rob.herring@calxeda.com \
--cc=robherring2@gmail.com \
/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