diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2008-01-03 06:14:36 +1100 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-01-17 14:57:15 +1100 |
commit | e25c47ffa97ca5e4602593b03ce6d21cff652864 (patch) | |
tree | 1bbd57e332fde97d5c801d881aee57aada56113e /arch/powerpc/platforms/celleb/iommu.c | |
parent | d518b71784c6fa4c8eafb334236883f763f8e296 (diff) | |
download | lwn-e25c47ffa97ca5e4602593b03ce6d21cff652864.tar.gz lwn-e25c47ffa97ca5e4602593b03ce6d21cff652864.zip |
[POWERPC] cell: Use machine_*_initcall() hooks in platform code
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/platforms/celleb/iommu.c')
-rw-r--r-- | arch/powerpc/platforms/celleb/iommu.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/powerpc/platforms/celleb/iommu.c b/arch/powerpc/platforms/celleb/iommu.c index fbe718d517a6..41e1e6f8e059 100644 --- a/arch/powerpc/platforms/celleb/iommu.c +++ b/arch/powerpc/platforms/celleb/iommu.c @@ -92,9 +92,6 @@ static struct notifier_block celleb_of_bus_notifier = { static int __init celleb_init_iommu(void) { - if (!machine_is(celleb_beat)) - return -ENODEV; - celleb_init_direct_mapping(); set_pci_dma_ops(&dma_direct_ops); bus_register_notifier(&of_platform_bus_type, &celleb_of_bus_notifier); @@ -102,4 +99,4 @@ static int __init celleb_init_iommu(void) return 0; } -arch_initcall(celleb_init_iommu); +machine_arch_initcall(celleb_beat, celleb_init_iommu); |