From 3f8c5c3b4d07fa24e7081a54798ddfab7360a102 Mon Sep 17 00:00:00 2001 From: Josh Boyer Date: Mon, 24 Dec 2007 10:42:02 -0600 Subject: [POWERPC] 4xx: Use machine_device_initcall for bus probe Some machine_xx_initcall macros were recently added that check for the machine type before calling the function. This converts the 4xx platforms to use those for bus probing. Signed-off-by: Josh Boyer --- arch/powerpc/platforms/44x/katmai.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'arch/powerpc/platforms/44x/katmai.c') diff --git a/arch/powerpc/platforms/44x/katmai.c b/arch/powerpc/platforms/44x/katmai.c index 06aa0aa..1113412 100644 --- a/arch/powerpc/platforms/44x/katmai.c +++ b/arch/powerpc/platforms/44x/katmai.c @@ -34,14 +34,11 @@ static __initdata struct of_device_id katmai_of_bus[] = { static int __init katmai_device_probe(void) { - if (!machine_is(katmai)) - return 0; - of_platform_bus_probe(NULL, katmai_of_bus, NULL); return 0; } -device_initcall(katmai_device_probe); +machine_device_initcall(katmai, katmai_device_probe); static int __init katmai_probe(void) { -- cgit v1.1