vserver 1.9.5.x5
[linux-2.6.git] / sound / core / info.c
index db1e257..de9879b 100644 (file)
@@ -20,7 +20,6 @@
  */
 
 #include <sound/driver.h>
-#include <linux/version.h>
 #include <linux/init.h>
 #include <linux/vmalloc.h>
 #include <linux/time.h>
@@ -126,8 +125,8 @@ static inline void snd_info_entry_prepare(struct proc_dir_entry *de)
        de->owner = THIS_MODULE;
 }
 
-void snd_remove_proc_entry(struct proc_dir_entry *parent,
-                          struct proc_dir_entry *de)
+static void snd_remove_proc_entry(struct proc_dir_entry *parent,
+                                 struct proc_dir_entry *de)
 {
        if (de)
                remove_proc_entry(de->name, parent);
@@ -522,8 +521,8 @@ static struct file_operations snd_info_entry_operations =
  *
  * Returns the pointer of new instance or NULL on failure.
  */
-struct proc_dir_entry *snd_create_proc_entry(const char *name, mode_t mode,
-                                            struct proc_dir_entry *parent)
+static struct proc_dir_entry *snd_create_proc_entry(const char *name, mode_t mode,
+                                                   struct proc_dir_entry *parent)
 {
        struct proc_dir_entry *p;
        p = create_proc_entry(name, mode, parent);
@@ -892,8 +891,7 @@ void snd_info_free_entry(snd_info_entry_t * entry)
 {
        if (entry == NULL)
                return;
-       if (entry->name)
-               kfree((char *)entry->name);
+       kfree(entry->name);
        if (entry->private_free)
                entry->private_free(entry);
        kfree(entry);
@@ -959,18 +957,10 @@ static snd_info_entry_t *snd_info_version_entry = NULL;
 
 static void snd_info_version_read(snd_info_entry_t *entry, snd_info_buffer_t * buffer)
 {
-       static char *kernel_version = UTS_RELEASE;
-
        snd_iprintf(buffer,
-                   "Advanced Linux Sound Architecture Driver Version " CONFIG_SND_VERSION CONFIG_SND_DATE ".\n"
-                   "Compiled on " __DATE__ " for kernel %s"
-#ifdef CONFIG_SMP
-                   " (SMP)"
-#endif
-#ifdef MODVERSIONS
-                   " with versioned symbols"
-#endif
-                   ".\n", kernel_version);
+                   "Advanced Linux Sound Architecture Driver Version "
+                   CONFIG_SND_VERSION CONFIG_SND_DATE ".\n"
+                  );
 }
 
 static int __init snd_info_version_init(void)