Commit 3f8c5c3b authored by Josh Boyer's avatar Josh Boyer

[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: default avatarJosh Boyer <jwboyer@linux.vnet.ibm.com>
parent 9e0fd5f0
......@@ -57,14 +57,11 @@ static __initdata struct of_device_id ep405_of_bus[] = {
static int __init ep405_device_probe(void)
{
if (!machine_is(ep405))
return 0;
of_platform_bus_probe(NULL, ep405_of_bus, NULL);
return 0;
}
device_initcall(ep405_device_probe);
machine_device_initcall(ep405, ep405_device_probe);
static void __init ep405_init_bcsr(void)
{
......
......@@ -30,14 +30,11 @@ static __initdata struct of_device_id kilauea_of_bus[] = {
static int __init kilauea_device_probe(void)
{
if (!machine_is(kilauea))
return 0;
of_platform_bus_probe(NULL, kilauea_of_bus, NULL);
return 0;
}
device_initcall(kilauea_device_probe);
machine_device_initcall(kilauea, kilauea_device_probe);
static int __init kilauea_probe(void)
{
......
......@@ -30,14 +30,11 @@ static __initdata struct of_device_id makalu_of_bus[] = {
static int __init makalu_device_probe(void)
{
if (!machine_is(makalu))
return 0;
of_platform_bus_probe(NULL, makalu_of_bus, NULL);
return 0;
}
device_initcall(makalu_device_probe);
machine_device_initcall(makalu, makalu_device_probe);
static int __init makalu_probe(void)
{
......
......@@ -17,14 +17,11 @@
static int __init virtex_device_probe(void)
{
if (!machine_is(virtex))
return 0;
of_platform_bus_probe(NULL, NULL, NULL);
return 0;
}
device_initcall(virtex_device_probe);
machine_device_initcall(virtex, virtex_device_probe);
static int __init virtex_probe(void)
{
......
......@@ -35,14 +35,11 @@ static __initdata struct of_device_id walnut_of_bus[] = {
static int __init walnut_device_probe(void)
{
if (!machine_is(walnut))
return 0;
of_platform_bus_probe(NULL, walnut_of_bus, NULL);
return 0;
}
device_initcall(walnut_device_probe);
machine_device_initcall(walnut, walnut_device_probe);
static int __init walnut_probe(void)
{
......
......@@ -34,14 +34,11 @@ static __initdata struct of_device_id bamboo_of_bus[] = {
static int __init bamboo_device_probe(void)
{
if (!machine_is(bamboo))
return 0;
of_platform_bus_probe(NULL, bamboo_of_bus, NULL);
return 0;
}
device_initcall(bamboo_device_probe);
machine_device_initcall(bamboo, bamboo_device_probe);
static int __init bamboo_probe(void)
{
......
......@@ -37,14 +37,11 @@ static __initdata struct of_device_id ebony_of_bus[] = {
static int __init ebony_device_probe(void)
{
if (!machine_is(ebony))
return 0;
of_platform_bus_probe(NULL, ebony_of_bus, NULL);
return 0;
}
device_initcall(ebony_device_probe);
machine_device_initcall(ebony, ebony_device_probe);
/*
* Called very early, MMU is off, device-tree isn't unflattened
......
......@@ -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)
{
......
......@@ -32,14 +32,11 @@ static __initdata struct of_device_id rainier_of_bus[] = {
static int __init rainier_device_probe(void)
{
if (!machine_is(rainier))
return 0;
of_platform_bus_probe(NULL, rainier_of_bus, NULL);
return 0;
}
device_initcall(rainier_device_probe);
machine_device_initcall(rainier, rainier_device_probe);
static int __init rainier_probe(void)
{
......
......@@ -34,14 +34,11 @@ static __initdata struct of_device_id sequoia_of_bus[] = {
static int __init sequoia_device_probe(void)
{
if (!machine_is(sequoia))
return 0;
of_platform_bus_probe(NULL, sequoia_of_bus, NULL);
return 0;
}
device_initcall(sequoia_device_probe);
machien_device_initcall(sequoia, sequoia_device_probe);
static int __init sequoia_probe(void)
{
......
......@@ -41,14 +41,11 @@ static __initdata struct of_device_id taishan_of_bus[] = {
static int __init taishan_device_probe(void)
{
if (!machine_is(taishan))
return 0;
of_platform_bus_probe(NULL, taishan_of_bus, NULL);
return 0;
}
device_initcall(taishan_device_probe);
machine_device_initcall(taishan, taishan_device_probe);
/*
* Called very early, MMU is off, device-tree isn't unflattened
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment