Devicetree
 help / color / mirror / Atom feed
* [PATCH] arm/dt: Print machine name after dt probe
@ 2010-07-28  4:45 Grant Likely
  2010-07-29  2:40 ` Jeremy Kerr
  0 siblings, 1 reply; 3+ messages in thread
From: Grant Likely @ 2010-07-28  4:45 UTC (permalink / raw)
  To: jeremy.kerr-Z7WLFzj8eWMS+FvcfC7Uqw,
	devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ

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;
 }

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-07-29  7:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-28  4:45 [PATCH] arm/dt: Print machine name after dt probe Grant Likely
2010-07-29  2:40 ` Jeremy Kerr
     [not found]   ` <1280371228.11181.9.camel-353AF/3W9ll+urZeOPWqwQ@public.gmane.org>
2010-07-29  7:02     ` Grant Likely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox