]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/zorro/proc.c
CHAR: Delete old and now unused M48T35 RTC driver for SGI IP27.
[linux-2.6-omap-h63xx.git] / drivers / zorro / proc.c
index 1b4317d7d7aad60f1ba3cf836803c076203c9e6e..d47c47fc048f7ff5de17e2f25ec37adb8ac977e3 100644 (file)
@@ -1,6 +1,4 @@
 /*
- *     $Id: proc.c,v 1.1.2.1 1998/06/07 23:21:01 geert Exp $
- *
  *     Procfs interface for the Zorro bus.
  *
  *     Copyright (C) 1998-2003 Geert Uytterhoeven
@@ -77,6 +75,7 @@ proc_bus_zorro_read(struct file *file, char __user *buf, size_t nbytes, loff_t *
 }
 
 static const struct file_operations proc_bus_zorro_operations = {
+       .owner          = THIS_MODULE,
        .llseek         = proc_bus_zorro_lseek,
        .read           = proc_bus_zorro_read,
 };
@@ -136,11 +135,11 @@ static int __init zorro_proc_attach_device(u_int slot)
        char name[4];
 
        sprintf(name, "%02x", slot);
-       entry = create_proc_entry(name, 0, proc_bus_zorro_dir);
+       entry = proc_create_data(name, 0, proc_bus_zorro_dir,
+                                &proc_bus_zorro_operations,
+                                &zorro_autocon[slot]);
        if (!entry)
                return -ENOMEM;
-       entry->proc_fops = &proc_bus_zorro_operations;
-       entry->data = &zorro_autocon[slot];
        entry->size = sizeof(struct zorro_dev);
        return 0;
 }
@@ -159,4 +158,4 @@ static int __init zorro_proc_init(void)
        return 0;
 }
 
-__initcall(zorro_proc_init);
+device_initcall(zorro_proc_init);