]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - sound/core/seq/oss/seq_oss.c
[PATCH] mark struct file_operations const 9
[linux-2.6-omap-h63xx.git] / sound / core / seq / oss / seq_oss.c
index b9919785180b82fff4b238657f68346ebbea91b5..2eb987308b539af5f321c9ea0c7264ca24a56a33 100644 (file)
@@ -208,7 +208,7 @@ odev_poll(struct file *file, poll_table * wait)
  * registration of sequencer minor device
  */
 
-static struct file_operations seq_oss_f_ops =
+static const struct file_operations seq_oss_f_ops =
 {
        .owner =        THIS_MODULE,
        .read =         odev_read,
@@ -291,7 +291,6 @@ register_proc(void)
 
        entry->content = SNDRV_INFO_CONTENT_TEXT;
        entry->private_data = NULL;
-       entry->c.text.read_size = 1024;
        entry->c.text.read = info_read;
        if (snd_info_register(entry) < 0) {
                snd_info_free_entry(entry);
@@ -304,8 +303,7 @@ register_proc(void)
 static void
 unregister_proc(void)
 {
-       if (info_entry)
-               snd_info_unregister(info_entry);
+       snd_info_free_entry(info_entry);
        info_entry = NULL;
 }
 #endif /* CONFIG_PROC_FS */