summaryrefslogtreecommitdiffstats
path: root/drivers/s390
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2000-06-15 01:55:58 +0000
committerRalf Baechle <ralf@linux-mips.org>2000-06-15 01:55:58 +0000
commit53b3988d474435254a3b053a68bb24ce9e439295 (patch)
treef8da8e40f01f4ad02bbd76b8c9920749b118235f /drivers/s390
parentb0cb48abe83d1a4389ea938bf624f8baa82c5047 (diff)
Merge with 2.3.99-pre9.
Diffstat (limited to 'drivers/s390')
-rw-r--r--drivers/s390/block/dasd_proc.c58
1 files changed, 5 insertions, 53 deletions
diff --git a/drivers/s390/block/dasd_proc.c b/drivers/s390/block/dasd_proc.c
index e757c435f..5a735401c 100644
--- a/drivers/s390/block/dasd_proc.c
+++ b/drivers/s390/block/dasd_proc.c
@@ -19,64 +19,16 @@ extern int dasd_proc_read_statistics ( char *, char **, off_t, int);
extern int dasd_proc_read_debug ( char *, char **, off_t, int);
#endif /* DASD_PROFILE */
-struct proc_dir_entry dasd_proc_root_entry = {
- 0,
- 4,"dasd",
- S_IFDIR | S_IRUGO | S_IXUGO | S_IWUSR | S_IWGRP,
- 1,0,0,
- 0,
- NULL,
-};
-
-struct proc_dir_entry dasd_proc_devices_entry = {
- 0,
- 7,"devices",
- S_IFREG | S_IRUGO | S_IXUGO | S_IWUSR | S_IWGRP,
- 1,0,0,
- 0,
- NULL,
- &dasd_proc_read_devices,
-};
-
-#ifdef DASD_PROFILE
-struct proc_dir_entry dasd_proc_stats_entry = {
- 0,
- 10,"statistics",
- S_IFREG | S_IRUGO | S_IXUGO | S_IWUSR | S_IWGRP,
- 1,0,0,
- 0,
- NULL,
- &dasd_proc_read_statistics,
-};
-
-struct proc_dir_entry dasd_proc_debug_entry = {
- 0,
- 5,"debug",
- S_IFREG | S_IRUGO | S_IXUGO | S_IWUSR | S_IWGRP,
- 1,0,0,
- 0,
- NULL,
- &dasd_proc_read_debug,
-};
-#endif /* DASD_PROFILE */
-
-struct proc_dir_entry dasd_proc_device_template = {
- 0,
- 6,"dd????",
- S_IFBLK | S_IRUGO | S_IWUSR | S_IWGRP,
- 1,0,0,
- 0,
- NULL,
-};
+static struct proc_dir_entry *dasd_proc_root_entry;
void
dasd_proc_init ( void )
{
- proc_register( & proc_root, & dasd_proc_root_entry);
- proc_register( & dasd_proc_root_entry, & dasd_proc_devices_entry);
+ dasd_proc_root_entry = proc_mkdir("dasd", NULL);
+ create_proc_info_entry("devices",0,&dasd_proc_root_entry,dasd_proc_read_devices);
#ifdef DASD_PROFILE
- proc_register( & dasd_proc_root_entry, & dasd_proc_stats_entry);
- proc_register( & dasd_proc_root_entry, & dasd_proc_debug_entry);
+ create_proc_info_entry("statistics",0,&dasd_proc_root_entry,dasd_proc_read_statistics);
+ create_proc_info_entry("debug",0,&dasd_proc_root_entry,dasd_proc_read_debug);
#endif /* DASD_PROFILE */
}