]> 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 e7234135641cd9ee97762ffe5b076f290ec04b35..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,
@@ -303,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 */