Commit 6869e4ad authored by Grant Likely's avatar Grant Likely Committed by Kumar Gala

[POWERPC] 8xx: Use machine_*_initcall() hooks in platform code

Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
parent 1dd4561e
...@@ -155,12 +155,11 @@ static struct of_device_id __initdata of_bus_ids[] = { ...@@ -155,12 +155,11 @@ static struct of_device_id __initdata of_bus_ids[] = {
static int __init declare_of_platform_devices(void) static int __init declare_of_platform_devices(void)
{ {
/* Publish the QE devices */ /* Publish the QE devices */
if (machine_is(ep88xc)) of_platform_bus_probe(NULL, of_bus_ids, NULL);
of_platform_bus_probe(NULL, of_bus_ids, NULL);
return 0; return 0;
} }
device_initcall(declare_of_platform_devices); machine_device_initcall(ep88xc, declare_of_platform_devices);
define_machine(ep88xc) { define_machine(ep88xc) {
.name = "Embedded Planet EP88xC", .name = "Embedded Planet EP88xC",
......
...@@ -128,12 +128,11 @@ static struct of_device_id __initdata of_bus_ids[] = { ...@@ -128,12 +128,11 @@ static struct of_device_id __initdata of_bus_ids[] = {
static int __init declare_of_platform_devices(void) static int __init declare_of_platform_devices(void)
{ {
if (machine_is(mpc86x_ads)) of_platform_bus_probe(NULL, of_bus_ids, NULL);
of_platform_bus_probe(NULL, of_bus_ids, NULL);
return 0; return 0;
} }
device_initcall(declare_of_platform_devices); machine_device_initcall(mpc86x_ads, declare_of_platform_devices);
define_machine(mpc86x_ads) { define_machine(mpc86x_ads) {
.name = "MPC86x ADS", .name = "MPC86x ADS",
......
...@@ -264,12 +264,11 @@ static struct of_device_id __initdata of_bus_ids[] = { ...@@ -264,12 +264,11 @@ static struct of_device_id __initdata of_bus_ids[] = {
static int __init declare_of_platform_devices(void) static int __init declare_of_platform_devices(void)
{ {
/* Publish the QE devices */ /* Publish the QE devices */
if (machine_is(mpc885_ads)) of_platform_bus_probe(NULL, of_bus_ids, NULL);
of_platform_bus_probe(NULL, of_bus_ids, NULL);
return 0; return 0;
} }
device_initcall(declare_of_platform_devices); machine_device_initcall(mpc885_ads, declare_of_platform_devices);
define_machine(mpc885_ads) { define_machine(mpc885_ads) {
.name = "Freescale MPC885 ADS", .name = "Freescale MPC885 ADS",
......
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