From: Grant Likely <grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org>
To: jeremy.kerr-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org,
devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
Subject: [PATCH] arm/dt: Print machine name after dt probe
Date: Tue, 27 Jul 2010 22:45:32 -0600 [thread overview]
Message-ID: <20100728044319.24530.72074.stgit@angua> (raw)
To match the behaviour of mach_type probing
Signed-off-by: Grant Likely <grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org>
---
Hi Jeremy,
I've got this patch in my tree. I'm going to squash it into "arm/dt:
probe for platforms via the device tree".
g.
arch/arm/kernel/devtree.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/arch/arm/kernel/devtree.c b/arch/arm/kernel/devtree.c
index 0fc8d16..f8da313 100644
--- a/arch/arm/kernel/devtree.c
+++ b/arch/arm/kernel/devtree.c
@@ -98,8 +98,10 @@ struct machine_desc * __init parse_devicetree(unsigned int machid,
dt_root = of_get_flat_dt_root();
for (mdesc = &__arch_info_begin; mdesc < &__arch_info_end; mdesc++)
- if (mdesc->probe_dt && mdesc->probe_dt(dt_root))
+ if (mdesc->probe_dt && mdesc->probe_dt(dt_root)) {
+ printk("Machine: %s\n", mdesc->name);
return mdesc;
+ }
return NULL;
}
next reply other threads:[~2010-07-28 4:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-28 4:45 Grant Likely [this message]
2010-07-29 2:40 ` [PATCH] arm/dt: Print machine name after dt probe Jeremy Kerr
[not found] ` <1280371228.11181.9.camel-353AF/3W9ll+urZeOPWqwQ@public.gmane.org>
2010-07-29 7:02 ` Grant Likely
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=20100728044319.24530.72074.stgit@angua \
--to=grant.likely-s3s/wqlpoipyb63q8fvjnq@public.gmane.org \
--cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org \
--cc=jeremy.kerr-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org \
/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