[PATCH] arm/dt: Print machine name after dt probe

Grant Likely grant.likely at secretlab.ca
Wed Jul 28 14:45:32 EST 2010


To match the behaviour of mach_type probing

Signed-off-by: Grant Likely <grant.likely at secretlab.ca>
---

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



More information about the devicetree-discuss mailing list