From cfeba6bf15694427a16394c2497d003b30d796ad Mon Sep 17 00:00:00 2001 From: Wade Farnsworth Date: Tue, 22 Jan 2008 13:17:45 -0700 Subject: [PATCH] --- yaml --- r: 81309 b: refs/heads/master c: 15061d60a3be0845dc17a0fbe87610d1cc7106c7 h: refs/heads/master i: 81307: 242440fe58dcdb4f496edf35c5c1fdb6f205227e v: v3 --- [refs] | 2 +- trunk/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 4898b4a0976c..6d0abd16527c 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 0ac247d5690570b825088a5752817eff42488897 +refs/heads/master: 15061d60a3be0845dc17a0fbe87610d1cc7106c7 diff --git a/trunk/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c b/trunk/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c index 14f4e527e7ac..cfbe8c52e263 100644 --- a/trunk/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c +++ b/trunk/arch/powerpc/platforms/86xx/mpc86xx_hpcn.c @@ -18,6 +18,7 @@ #include #include #include +#include #include #include @@ -212,6 +213,19 @@ mpc86xx_time_init(void) return 0; } +static __initdata struct of_device_id of_bus_ids[] = { + { .compatible = "simple-bus", }, + {}, +}; + +static int __init declare_of_platform_devices(void) +{ + of_platform_bus_probe(NULL, of_bus_ids, NULL); + + return 0; +} +machine_device_initcall(mpc86xx_hpcn, declare_of_platform_devices); + define_machine(mpc86xx_hpcn) { .name = "MPC86xx HPCN", .probe = mpc86xx_hpcn_probe,