Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753633Ab2KLPUY (ORCPT ); Mon, 12 Nov 2012 10:20:24 -0500 Received: from mail-pb0-f46.google.com ([209.85.160.46]:38200 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753537Ab2KLPUV (ORCPT ); Mon, 12 Nov 2012 10:20:21 -0500 MIME-Version: 1.0 In-Reply-To: <1352732343-1199-1-git-send-email-per.forlin@stericsson.com> References: <1352732343-1199-1-git-send-email-per.forlin@stericsson.com> From: Grant Likely Date: Mon, 12 Nov 2012 15:20:00 +0000 X-Google-Sender-Auth: 0wp9YbufdBsuk_Ntv2_ttjTH3Z8 Message-ID: Subject: Re: [PATCH] dt: platform: Extract device name from device tree blob To: Per Forlin Cc: rob.herring@calxeda.com, Linus Walleij , lee.jones@linaro.org, fredrik.soderstedt@stericsson.com, devicetree-discuss@lists.ozlabs.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 879 Lines: 19 On Mon, Nov 12, 2012 at 2:59 PM, Per Forlin wrote: > Add support to extract device name from device tree blob. > If the property "dev-name" is set in the DTS this name will > be used when creating the device. > The auxdata_lookup has precedence and will override > the "dev-name" property. Using a 'dev-name' property has the same problem that the 'cell-index' properties have in that it is encoding part of the global namespace local to the node and it becomes easy to create collisions. Instead of this check to see if one of the properties in /aliases points to the node and use that for the name. 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/