From: Grant Likely Subject: [PATCH] arm/dt: Print machine name after dt probe Date: Tue, 27 Jul 2010 22:45:32 -0600 Message-ID: <20100728044319.24530.72074.stgit@angua> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org Errors-To: devicetree-discuss-bounces+gldd-devicetree-discuss=m.gmane.org-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org To: jeremy.kerr-Z7WLFzj8eWMS+FvcfC7Uqw@public.gmane.org, devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org List-Id: devicetree@vger.kernel.org To match the behaviour of mach_type probing Signed-off-by: Grant Likely --- 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; }