From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: Date: Fri, 25 Jul 2008 09:20:22 -0400 From: "Grant Likely" Sender: glikely@secretlab.ca To: "Wolfgang Grandegger" Subject: Re: [PATCH] powerpc: 85xx: add proper OF bus ids for the TQM85xx In-Reply-To: <48898470.80109@grandegger.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 References: <48898470.80109@grandegger.com> Cc: Linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Fri, Jul 25, 2008 at 3:44 AM, Wolfgang Grandegger wrote: > Since recent modifications to the MPC I2C code, the MPC I2C buses are not > found any more. This patch fixes the problem by adding proper OF > bus ids. > > Signed-off-by: Wolfgang Grandegger > --- > arch/powerpc/platforms/85xx/tqm85xx.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > Index: linux-2.6-galak/arch/powerpc/platforms/85xx/tqm85xx.c > =================================================================== > --- linux-2.6-galak.orig/arch/powerpc/platforms/85xx/tqm85xx.c > +++ linux-2.6-galak/arch/powerpc/platforms/85xx/tqm85xx.c > @@ -156,15 +156,15 @@ static void tqm85xx_show_cpuinfo(struct } > > static struct of_device_id __initdata of_bus_ids[] = { > + { .type = "soc", }, > + { .compatible = "soc", }, > { .compatible = "simple-bus", }, Ugh, i assume this is to support older .dts files that don't have simple-bus in their compatible property? Please put them at the end of the list and put a comment ahead of them stating that they are legacy support. You should also state in the comment which boards or dts files these entries provide support for. g. -- Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd.