Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756081Ab3JGMCy (ORCPT ); Mon, 7 Oct 2013 08:02:54 -0400 Received: from mail-wi0-f177.google.com ([209.85.212.177]:56728 "EHLO mail-wi0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754582Ab3JGMCt (ORCPT ); Mon, 7 Oct 2013 08:02:49 -0400 From: Grant Likely Subject: Re: [PATCH 23/28] of: introduce common FDT machine related functions To: Rob Herring , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Cc: Rob Herring In-Reply-To: <1379372965-22359-24-git-send-email-robherring2@gmail.com> References: <1379372965-22359-1-git-send-email-robherring2@gmail.com> <1379372965-22359-24-git-send-email-robherring2@gmail.com> Date: Fri, 04 Oct 2013 19:49:59 +0100 Message-Id: <20131004184959.CAA4EC42926@trevor.secretlab.ca> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1419 Lines: 37 On Mon, 16 Sep 2013 18:09:19 -0500, Rob Herring wrote: > From: Rob Herring > > Introduce common of_flat_dt_match_machine and > of_flat_dt_get_machine_name functions to unify architectures' handling > of machine level model and compatible properties. > > Several architectures match the root compatible string with an arch > specific list of machine descriptors duplicating the same search > algorithm. Create a common implementation with a simple architecture > specific hook to iterate over each machine's match table. > > Signed-off-by: Rob Herring > Cc: Grant Likely > --- > drivers/of/fdt.c | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++ > include/linux/of_fdt.h | 4 ++++ > 2 files changed, 64 insertions(+) > > diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c > index 83cdeb5..e21d1dc 100644 > --- a/drivers/of/fdt.c > +++ b/drivers/of/fdt.c > @@ -619,6 +619,66 @@ int __init of_scan_flat_dt_by_path(const char *path, > return ret; > } > > +const char *of_flat_dt_get_machine_name(void) Just discovered that this needs to be __init. g. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/