diff options
-rw-r--r-- | arch/powerpc/platforms/pasemi/idle.c | 5 | ||||
-rw-r--r-- | arch/powerpc/platforms/pasemi/setup.c | 10 |
2 files changed, 3 insertions, 12 deletions
diff --git a/arch/powerpc/platforms/pasemi/idle.c b/arch/powerpc/platforms/pasemi/idle.c index d8e1fcc78513..43911d8b0206 100644 --- a/arch/powerpc/platforms/pasemi/idle.c +++ b/arch/powerpc/platforms/pasemi/idle.c | |||
@@ -74,9 +74,6 @@ static int pasemi_system_reset_exception(struct pt_regs *regs) | |||
74 | 74 | ||
75 | static int __init pasemi_idle_init(void) | 75 | static int __init pasemi_idle_init(void) |
76 | { | 76 | { |
77 | if (!machine_is(pasemi)) | ||
78 | return -ENODEV; | ||
79 | |||
80 | #ifndef CONFIG_PPC_PASEMI_CPUFREQ | 77 | #ifndef CONFIG_PPC_PASEMI_CPUFREQ |
81 | printk(KERN_WARNING "No cpufreq driver, powersavings modes disabled\n"); | 78 | printk(KERN_WARNING "No cpufreq driver, powersavings modes disabled\n"); |
82 | current_mode = 0; | 79 | current_mode = 0; |
@@ -88,7 +85,7 @@ static int __init pasemi_idle_init(void) | |||
88 | 85 | ||
89 | return 0; | 86 | return 0; |
90 | } | 87 | } |
91 | late_initcall(pasemi_idle_init); | 88 | machine_late_initcall(pasemi, pasemi_idle_init); |
92 | 89 | ||
93 | static int __init idle_param(char *p) | 90 | static int __init idle_param(char *p) |
94 | { | 91 | { |
diff --git a/arch/powerpc/platforms/pasemi/setup.c b/arch/powerpc/platforms/pasemi/setup.c index a89d098e41bf..c64fb5bfb37e 100644 --- a/arch/powerpc/platforms/pasemi/setup.c +++ b/arch/powerpc/platforms/pasemi/setup.c | |||
@@ -135,9 +135,6 @@ static int __init pas_setup_mce_regs(void) | |||
135 | struct pci_dev *dev; | 135 | struct pci_dev *dev; |
136 | int reg; | 136 | int reg; |
137 | 137 | ||
138 | if (!machine_is(pasemi)) | ||
139 | return -ENODEV; | ||
140 | |||
141 | /* Remap various SoC status registers for use by the MCE handler */ | 138 | /* Remap various SoC status registers for use by the MCE handler */ |
142 | 139 | ||
143 | reg = 0; | 140 | reg = 0; |
@@ -181,7 +178,7 @@ static int __init pas_setup_mce_regs(void) | |||
181 | 178 | ||
182 | return 0; | 179 | return 0; |
183 | } | 180 | } |
184 | device_initcall(pas_setup_mce_regs); | 181 | machine_device_initcall(pasemi, pas_setup_mce_regs); |
185 | 182 | ||
186 | static __init void pas_init_IRQ(void) | 183 | static __init void pas_init_IRQ(void) |
187 | { | 184 | { |
@@ -405,9 +402,6 @@ static struct of_device_id pasemi_bus_ids[] = { | |||
405 | 402 | ||
406 | static int __init pasemi_publish_devices(void) | 403 | static int __init pasemi_publish_devices(void) |
407 | { | 404 | { |
408 | if (!machine_is(pasemi)) | ||
409 | return 0; | ||
410 | |||
411 | pasemi_pcmcia_init(); | 405 | pasemi_pcmcia_init(); |
412 | 406 | ||
413 | /* Publish OF platform devices for SDC and other non-PCI devices */ | 407 | /* Publish OF platform devices for SDC and other non-PCI devices */ |
@@ -415,7 +409,7 @@ static int __init pasemi_publish_devices(void) | |||
415 | 409 | ||
416 | return 0; | 410 | return 0; |
417 | } | 411 | } |
418 | device_initcall(pasemi_publish_devices); | 412 | machine_device_initcall(pasemi, pasemi_publish_devices); |
419 | 413 | ||
420 | 414 | ||
421 | /* | 415 | /* |