Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 81247
b: refs/heads/master
c: d518b71
h: refs/heads/master
i:
  81245: f49db3b
  81243: d943ccd
  81239: 4ed0532
  81231: e8228bb
  81215: c731f7c
v: v3
  • Loading branch information
Grant Likely authored and Paul Mackerras committed Jan 17, 2008
1 parent 4324172 commit f9b6b02
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 20 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 97759e494e2bfccc23ffc7b236196cb5c1703e2e
refs/heads/master: d518b71784c6fa4c8eafb334236883f763f8e296
7 changes: 2 additions & 5 deletions trunk/arch/powerpc/platforms/powermac/low_i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -1461,9 +1461,6 @@ int __init pmac_i2c_init(void)
return 0;
i2c_inited = 1;

if (!machine_is(powermac))
return 0;

/* Probe keywest-i2c busses */
kw_i2c_probe();

Expand All @@ -1482,7 +1479,7 @@ int __init pmac_i2c_init(void)

return 0;
}
arch_initcall(pmac_i2c_init);
machine_arch_initcall(powermac, pmac_i2c_init);

/* Since pmac_i2c_init can be called too early for the platform device
* registration, we need to do it at a later time. In our case, subsys
Expand Down Expand Up @@ -1514,4 +1511,4 @@ static int __init pmac_i2c_create_platform_devices(void)

return 0;
}
subsys_initcall(pmac_i2c_create_platform_devices);
machine_subsys_initcall(powermac, pmac_i2c_create_platform_devices);
3 changes: 1 addition & 2 deletions trunk/arch/powerpc/platforms/powermac/pfunc_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,7 @@ int __init pmac_pfunc_base_install(void)

return 0;
}

arch_initcall(pmac_pfunc_base_install);
machine_arch_initcall(powermac, pmac_pfunc_base_install);

#ifdef CONFIG_PM

Expand Down
3 changes: 1 addition & 2 deletions trunk/arch/powerpc/platforms/powermac/pic.c
Original file line number Diff line number Diff line change
Expand Up @@ -690,6 +690,5 @@ static int __init init_pmacpic_sysfs(void)
sysdev_driver_register(&pmacpic_sysclass, &driver_pmacpic);
return 0;
}

subsys_initcall(init_pmacpic_sysfs);
machine_subsys_initcall(powermac, init_pmacpic_sysfs);

12 changes: 2 additions & 10 deletions trunk/arch/powerpc/platforms/powermac/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -397,17 +397,13 @@ static int initializing = 1;

static int pmac_late_init(void)
{
if (!machine_is(powermac))
return -ENODEV;

initializing = 0;
/* this is udbg (which is __init) and we can later use it during
* cpu hotplug (in smp_core99_kick_cpu) */
ppc_md.progress = NULL;
return 0;
}

late_initcall(pmac_late_init);
machine_late_initcall(powermac, pmac_late_init);

/*
* This is __init_refok because we check for "initializing" before
Expand Down Expand Up @@ -534,9 +530,6 @@ static int __init pmac_declare_of_platform_devices(void)
if (machine_is(chrp))
return -1;

if (!machine_is(powermac))
return 0;

np = of_find_node_by_name(NULL, "valkyrie");
if (np)
of_platform_device_create(np, "valkyrie", NULL);
Expand All @@ -551,8 +544,7 @@ static int __init pmac_declare_of_platform_devices(void)

return 0;
}

device_initcall(pmac_declare_of_platform_devices);
machine_device_initcall(powermac, pmac_declare_of_platform_devices);

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

0 comments on commit f9b6b02

Please sign in to comment.