|
@@ -526,10 +526,8 @@ void rtas_cancel_event_scan(void)
|
|
|
}
|
|
|
EXPORT_SYMBOL_GPL(rtas_cancel_event_scan);
|
|
|
|
|
|
-static int __init rtas_init(void)
|
|
|
+static int __init rtas_event_scan_init(void)
|
|
|
{
|
|
|
- struct proc_dir_entry *entry;
|
|
|
-
|
|
|
if (!machine_is(pseries) && !machine_is(chrp))
|
|
|
return 0;
|
|
|
|
|
@@ -562,13 +560,27 @@ static int __init rtas_init(void)
|
|
|
return -ENOMEM;
|
|
|
}
|
|
|
|
|
|
+ start_event_scan();
|
|
|
+
|
|
|
+ return 0;
|
|
|
+}
|
|
|
+arch_initcall(rtas_event_scan_init);
|
|
|
+
|
|
|
+static int __init rtas_init(void)
|
|
|
+{
|
|
|
+ struct proc_dir_entry *entry;
|
|
|
+
|
|
|
+ if (!machine_is(pseries) && !machine_is(chrp))
|
|
|
+ return 0;
|
|
|
+
|
|
|
+ if (!rtas_log_buf)
|
|
|
+ return -ENODEV;
|
|
|
+
|
|
|
entry = proc_create("powerpc/rtas/error_log", S_IRUSR, NULL,
|
|
|
&proc_rtas_log_operations);
|
|
|
if (!entry)
|
|
|
printk(KERN_ERR "Failed to create error_log proc entry\n");
|
|
|
|
|
|
- start_event_scan();
|
|
|
-
|
|
|
return 0;
|
|
|
}
|
|
|
__initcall(rtas_init);
|