From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.177]) by ozlabs.org (Postfix) with ESMTP id E78F9DDD0B for ; Wed, 1 Aug 2007 18:36:49 +1000 (EST) From: Arnd Bergmann To: Dave Jiang Subject: Re: [PATCH 2/2] powerpc: MPC85xx EDAC device driver Date: Wed, 1 Aug 2007 10:36:31 +0200 References: <20070726222225.GB10427@blade.az.mvista.com> <200708010025.33732.arnd@arndb.de> <46AFD0C8.5010704@mvista.com> In-Reply-To: <46AFD0C8.5010704@mvista.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Message-Id: <200708011036.31601.arnd@arndb.de> Cc: linuxppc-dev@ozlabs.org, bluesmoke-devel@lists.sourceforge.net, norsk5@yahoo.com List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wednesday 01 August 2007, Dave Jiang wrote: > Do you mean the pci_controller hose that's allocated in fsl_add_bridge? Couple > questions.... > 1. How do I even get access to that? (in fsl_soc.c that is) > 2. pci_controller has no "struct device" member. It only has "struct device > *parent". What do I set the dev->parent of the platform device to? You already have the device_node, and can simply call of_find_device_by_node() on it to get the of_device. The current fsl_pci code does not use the of_device of the hose but adds the hose at the top of the device tree, afaics, but that can change when the ppc32 PCI initialization gets changed to do the initialization later during boot. Arnd <><