From: Ian Campbell Subject: Re: [PATCH V1 17/29] xen/arm: Mark each device used by Xen as disabled in DOM0 FDT Date: Thu, 29 Aug 2013 09:34:00 +0100 Message-ID: <1377765240.11455.5.camel@kazak.uk.xensource.com> References: <521F2E2E02000030000333EF@soto.provo.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <521F2E2E02000030000333EF@soto.provo.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Bamvor Jian Zhang Cc: stefano.stabellini@eu.citrix.com, julien.grall@linaro.org, patches@linaro.org, andre.przywara@linaro.org, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Wed, 2013-08-28 at 19:19 -0600, Bamvor Jian Zhang wrote: > > - early_printk("Looking for UART console %s\n", devalias); > > - dev = dt_find_node_by_alias(devalias); > > + early_printk("Looking for UART console %s\n", devpath); > > + if ( *devpath == '/' ) > > + dev = dt_find_node_by_path(devpath); > > + else > > + dev = dt_find_node_by_alias(devpath); > if '/' start an alias, it should be I think / is the start of a path not an alias, so the current code is correct. > + if ( *devpath == '/' ) > + dev = dt_find_node_by_alias(devpath); > + else > + dev = dt_find_node_by_path(devpath); > Ian.