|
@@ -255,8 +255,6 @@ static void check_location(struct seq_file *m, const char *c);
|
|
|
|
|
|
static int __init proc_rtas_init(void)
|
|
|
{
|
|
|
- struct proc_dir_entry *entry;
|
|
|
-
|
|
|
if (!machine_is(pseries))
|
|
|
return -ENODEV;
|
|
|
|
|
@@ -264,35 +262,20 @@ static int __init proc_rtas_init(void)
|
|
|
if (rtas_node == NULL)
|
|
|
return -ENODEV;
|
|
|
|
|
|
- entry = create_proc_entry("ppc64/rtas/progress", S_IRUGO|S_IWUSR, NULL);
|
|
|
- if (entry)
|
|
|
- entry->proc_fops = &ppc_rtas_progress_operations;
|
|
|
-
|
|
|
- entry = create_proc_entry("ppc64/rtas/clock", S_IRUGO|S_IWUSR, NULL);
|
|
|
- if (entry)
|
|
|
- entry->proc_fops = &ppc_rtas_clock_operations;
|
|
|
-
|
|
|
- entry = create_proc_entry("ppc64/rtas/poweron", S_IWUSR|S_IRUGO, NULL);
|
|
|
- if (entry)
|
|
|
- entry->proc_fops = &ppc_rtas_poweron_operations;
|
|
|
-
|
|
|
- entry = create_proc_entry("ppc64/rtas/sensors", S_IRUGO, NULL);
|
|
|
- if (entry)
|
|
|
- entry->proc_fops = &ppc_rtas_sensors_operations;
|
|
|
-
|
|
|
- entry = create_proc_entry("ppc64/rtas/frequency", S_IWUSR|S_IRUGO,
|
|
|
- NULL);
|
|
|
- if (entry)
|
|
|
- entry->proc_fops = &ppc_rtas_tone_freq_operations;
|
|
|
-
|
|
|
- entry = create_proc_entry("ppc64/rtas/volume", S_IWUSR|S_IRUGO, NULL);
|
|
|
- if (entry)
|
|
|
- entry->proc_fops = &ppc_rtas_tone_volume_operations;
|
|
|
-
|
|
|
- entry = create_proc_entry("ppc64/rtas/rmo_buffer", S_IRUSR, NULL);
|
|
|
- if (entry)
|
|
|
- entry->proc_fops = &ppc_rtas_rmo_buf_ops;
|
|
|
-
|
|
|
+ proc_create("ppc64/rtas/progress", S_IRUGO|S_IWUSR, NULL,
|
|
|
+ &ppc_rtas_progress_operations);
|
|
|
+ proc_create("ppc64/rtas/clock", S_IRUGO|S_IWUSR, NULL,
|
|
|
+ &ppc_rtas_clock_operations);
|
|
|
+ proc_create("ppc64/rtas/poweron", S_IWUSR|S_IRUGO, NULL,
|
|
|
+ &ppc_rtas_poweron_operations);
|
|
|
+ proc_create("ppc64/rtas/sensors", S_IRUGO, NULL,
|
|
|
+ &ppc_rtas_sensors_operations);
|
|
|
+ proc_create("ppc64/rtas/frequency", S_IWUSR|S_IRUGO, NULL,
|
|
|
+ &ppc_rtas_tone_freq_operations);
|
|
|
+ proc_create("ppc64/rtas/volume", S_IWUSR|S_IRUGO, NULL,
|
|
|
+ &ppc_rtas_tone_volume_operations);
|
|
|
+ proc_create("ppc64/rtas/rmo_buffer", S_IRUSR, NULL,
|
|
|
+ &ppc_rtas_rmo_buf_ops);
|
|
|
return 0;
|
|
|
}
|
|
|
|