|
@@ -72,8 +72,11 @@ static int pasemi_system_reset_exception(struct pt_regs *regs)
|
|
|
return 1;
|
|
|
}
|
|
|
|
|
|
-void __init pasemi_idle_init(void)
|
|
|
+static int __init pasemi_idle_init(void)
|
|
|
{
|
|
|
+ if (!machine_is(pasemi))
|
|
|
+ return -ENODEV;
|
|
|
+
|
|
|
#ifndef CONFIG_PPC_PASEMI_CPUFREQ
|
|
|
printk(KERN_WARNING "No cpufreq driver, powersavings modes disabled\n");
|
|
|
current_mode = 0;
|
|
@@ -82,7 +85,10 @@ void __init pasemi_idle_init(void)
|
|
|
ppc_md.system_reset_exception = pasemi_system_reset_exception;
|
|
|
ppc_md.power_save = modes[current_mode].entry;
|
|
|
printk(KERN_INFO "Using PA6T idle loop (%s)\n", modes[current_mode].name);
|
|
|
+
|
|
|
+ return 0;
|
|
|
}
|
|
|
+late_initcall(pasemi_idle_init);
|
|
|
|
|
|
static int __init idle_param(char *p)
|
|
|
{
|