From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.semihalf.com (mail.semihalf.com [83.15.139.206]) by ozlabs.org (Postfix) with ESMTP id 55397DE17A for ; Wed, 7 Nov 2007 07:05:15 +1100 (EST) Received: from localhost (unknown [127.0.0.1]) by mail.semihalf.com (Postfix) with ESMTP id 9260814399 for ; Tue, 6 Nov 2007 21:06:06 +0100 (CET) Received: from mail.semihalf.com ([127.0.0.1]) by localhost (mail.semihalf.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09143-09 for ; Tue, 6 Nov 2007 21:06:05 +0100 (CET) Received: from hekate.izotz.org (frozen.izotz.org [83.175.187.135]) by mail.semihalf.com (Postfix) with ESMTP id 7D64B14377 for ; Tue, 6 Nov 2007 21:06:05 +0100 (CET) From: Marian Balakowicz Subject: [PATCH v3 02/13] [POWERPC] Add 'fsl, lpb' bus type for MPC5200 LocalPlus Bus To: linuxppc-dev@ozlabs.org Date: Tue, 06 Nov 2007 21:05:05 +0100 Message-ID: <20071106200504.10913.40302.stgit@hekate.izotz.org> In-Reply-To: <20071106200446.10913.29338.stgit@hekate.izotz.org> References: <20071106200446.10913.29338.stgit@hekate.izotz.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Define MPC52xx specific device id list, add new 'fsl,lpb' compatible id for LocalPlus Bus. Signed-off-by: Marian Balakowicz Acked-by: David Gibson --- arch/powerpc/platforms/52xx/mpc52xx_common.c | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/platforms/52xx/mpc52xx_common.c b/arch/powerpc/platforms/52xx/mpc52xx_common.c index 9850685..2df97c5 100644 --- a/arch/powerpc/platforms/52xx/mpc52xx_common.c +++ b/arch/powerpc/platforms/52xx/mpc52xx_common.c @@ -124,11 +124,18 @@ mpc5200_setup_xlb_arbiter(void) iounmap(xlb); } +static struct of_device_id mpc52xx_ids[] = { + { .type = "soc", }, + { .compatible = "soc", }, + { .compatible = "fsl,lpb", }, + {}, +}; + void __init mpc52xx_declare_of_platform_devices(void) { /* Find every child of the SOC node and add it to of_platform */ - if (of_platform_bus_probe(NULL, NULL, NULL)) + if (of_platform_bus_probe(NULL, mpc52xx_ids, NULL)) printk(KERN_ERR __FILE__ ": " "Error while probing of_platform bus\n"); }