Skip to content

Commit

Permalink
[POWERPC] 8xx: Use machine_*_initcall() hooks in platform code
Browse files Browse the repository at this point in the history
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
  • Loading branch information
Grant Likely authored and Kumar Gala committed Jan 24, 2008
1 parent 1dd4561 commit 6869e4a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
5 changes: 2 additions & 3 deletions arch/powerpc/platforms/8xx/ep88xc.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,12 +155,11 @@ static struct of_device_id __initdata of_bus_ids[] = {
static int __init declare_of_platform_devices(void)
{
/* 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;
}
device_initcall(declare_of_platform_devices);
machine_device_initcall(ep88xc, declare_of_platform_devices);

define_machine(ep88xc) {
.name = "Embedded Planet EP88xC",
Expand Down
5 changes: 2 additions & 3 deletions arch/powerpc/platforms/8xx/mpc86xads_setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,11 @@ static struct of_device_id __initdata of_bus_ids[] = {

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;
}
device_initcall(declare_of_platform_devices);
machine_device_initcall(mpc86x_ads, declare_of_platform_devices);

define_machine(mpc86x_ads) {
.name = "MPC86x ADS",
Expand Down
5 changes: 2 additions & 3 deletions arch/powerpc/platforms/8xx/mpc885ads_setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,12 +264,11 @@ static struct of_device_id __initdata of_bus_ids[] = {
static int __init declare_of_platform_devices(void)
{
/* 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;
}
device_initcall(declare_of_platform_devices);
machine_device_initcall(mpc885_ads, declare_of_platform_devices);

define_machine(mpc885_ads) {
.name = "Freescale MPC885 ADS",
Expand Down

0 comments on commit 6869e4a

Please sign in to comment.