From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from de01egw01.freescale.net (de01egw01.freescale.net [192.88.165.102]) by ozlabs.org (Postfix) with ESMTP id AA400DE178 for ; Wed, 20 Dec 2006 08:31:05 +1100 (EST) Date: Tue, 19 Dec 2006 15:31:02 -0600 From: Kim Phillips To: linuxppc-dev@ozlabs.org Subject: [PATCH] powerpc: Add a device_initcall to call of_platform_bus_probe on all fsl SoCs Message-Id: <20061219153102.20ab3345.kim.phillips@freescale.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Utilize of_platform_bus_probe() in lieu of manually calling of_platform_device_create for each ucc_geth device (consequently, the QE is added to of_default_bus_ids). This has been extended outside mpc83xx platform code, since other fsl SoCs are going to need it (thanks Kumar). Signed-off-by: Kim Phillips --- arch/powerpc/kernel/of_platform.c | 1 + arch/powerpc/sysdev/fsl_soc.c | 9 +++++++++ 2 files changed, 10 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/kernel/of_platform.c b/arch/powerpc/kernel/of_platform.c index 3002ea3..72da78b 100644 --- a/arch/powerpc/kernel/of_platform.c +++ b/arch/powerpc/kernel/of_platform.c @@ -50,6 +50,7 @@ static struct of_device_id of_default_bu { .type = "plb5", }, { .type = "plb4", }, { .type = "opb", }, + { .type = "qe", }, {}, }; diff --git a/arch/powerpc/sysdev/fsl_soc.c b/arch/powerpc/sysdev/fsl_soc.c index ad31e56..c41b851 100644 --- a/arch/powerpc/sysdev/fsl_soc.c +++ b/arch/powerpc/sysdev/fsl_soc.c @@ -28,6 +28,7 @@ #include #include +#include #include #include #include @@ -63,6 +64,14 @@ phys_addr_t get_immrbase(void) EXPORT_SYMBOL(get_immrbase); +static int __init fsl_publish_devices(void) +{ + of_platform_bus_probe(NULL, NULL, NULL); + + return 0; +} +device_initcall(fsl_publish_devices); + #ifdef CONFIG_CPM2 static u32 brgfreq = -1; -- 1.4.4