Skip to content

Commit

Permalink
[POWERPC] 85xx: convert sbc85* boards to use machine_device_initcall
Browse files Browse the repository at this point in the history
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
  • Loading branch information
Kumar Gala committed Jan 28, 2008
1 parent b38308a commit 77b4159
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions arch/powerpc/platforms/85xx/sbc8548.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,11 @@ static struct of_device_id __initdata of_bus_ids[] = {

static int __init declare_of_platform_devices(void)
{
if (!machine_is(sbc8548))
return 0;

of_platform_bus_probe(NULL, of_bus_ids, NULL);

return 0;
}
device_initcall(declare_of_platform_devices);
machine_device_initcall(sbc8548, declare_of_platform_devices);

/*
* Called very early, device-tree isn't unflattened
Expand Down
6 changes: 2 additions & 4 deletions arch/powerpc/platforms/85xx/sbc8560.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,13 +222,11 @@ static struct of_device_id __initdata of_bus_ids[] = {

static int __init declare_of_platform_devices(void)
{
if (!machine_is(sbc8560))
return 0;

of_platform_bus_probe(NULL, of_bus_ids, NULL);

return 0;
}
device_initcall(declare_of_platform_devices);
machine_device_initcall(sbc8560, declare_of_platform_devices);

/*
* Called very early, device-tree isn't unflattened
Expand Down

0 comments on commit 77b4159

Please sign in to comment.