From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-in-03.arcor-online.net (mail-in-03.arcor-online.net [151.189.21.43]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mx.arcor.de", Issuer "Thawte Premium Server CA" (verified OK)) by ozlabs.org (Postfix) with ESMTP id CD6FEDDEBB for ; Sun, 13 May 2007 00:08:24 +1000 (EST) In-Reply-To: <20070511221304.a5a14f4e.sfr@canb.auug.org.au> References: <46445455.608@freescale.com> <20070511221304.a5a14f4e.sfr@canb.auug.org.au> Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <7ba6dfe847f334f36560b84e291f2317@kernel.crashing.org> From: Segher Boessenkool Subject: Re: [PATCH v3] 83xx USB platform code rework Date: Sat, 12 May 2007 16:07:38 +0200 To: Stephen Rothwell Cc: linuxppc-dev@ozlabs.org, Li Yang , Paul List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , >> + } else if (prop && !strcmp(prop, "serial")) { >> + if (!strcmp(of_get_property(np, "dr_mode", NULL), "otg")) { > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > Is there any chance that np doesn't have a "dr_mode" property? Yes, of course -- you can never trust the incoming device tree to be "correct". Also, please no underscores in property names. Segher